예제 #1
0
        public override void visit(var_def_statement varDefStmt)
        {
            _visitor.visit(varDefStmt);

            foreach (var id in varDefStmt.vars.idents)
            {
                var si = _visitor.context.find(id.name);
                _currentTreeNode.VariablesDefinedInScope.Add(new CapturedVariablesTreeNode.CapturedSymbolInfo(varDefStmt, si));
            }

            if (varDefStmt.inital_value != null)
            {
                ProcessNode(varDefStmt.inital_value);
            }
        }
 public override void visit(var_def_statement varStmt)
 {
     syntaxTreeVisitor.visit(varStmt);
 }