Fix debug message "Scope::checkVariable found variable '%var%' with varid 0." in C# code with 'using %var%;'.
This commit is contained in:
parent
873572d489
commit
8c68b811f3
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue