Esempio n. 1
0
        public override void VisitForStatement(ForStatementSyntax node)
        {
            var id = ((IdentifierNameSyntax)node.Variable).Identifier;

            _tracker.AddIdentifier(id);
            Visit(node.Statement);
            _tracker.RemoveIdentifier(id);
        }
Esempio n. 2
0
 public override void VisitForEachStatement(ForEachStatementSyntax node)
 {
     tracker.AddIdentifier(node.Identifier);
     Visit(node.Statement);
     tracker.RemoveIdentifier(node.Identifier);
 }