Fix debug message "Scope::checkVariable found variable '%var%' with varid 0." in C# code with 'using %var%;'.

This commit is contained in:
Edoardo Prezioso 2011-12-30 13:00:14 +01:00
parent 873572d489
commit 8c68b811f3
1 changed files with 3 additions and 0 deletions

View File

@ -1493,6 +1493,9 @@ void Scope::getVariableList()
else if (Token::Match(tok, "goto %var% ;")) {
tok = tok->tokAt(2);
continue;
} else if (check->_tokenizer->isCSharp() && Token::Match(tok, "using %var% ;")) {
tok = tok->tokAt(2);
continue;
}
tok = checkVariable(tok, varaccess);