Exemplo n.º 1
0
 private void WalkTuple(TupleExpression tuple)
 {
     foreach (Expression innerNode in tuple.Items)
     {
         NameExpression name = innerNode as NameExpression;
         if (name != null)
         {
             _binder.DefineName(name.Name);
             name.AddVariableReference(_binder._globalScope, _binder._bindRefs, _binder.Reference(name.Name));
         }
         else if (innerNode is TupleExpression)
         {
             WalkTuple((TupleExpression)innerNode);
         }
     }
 }
Exemplo n.º 2
0
 public override bool Walk(NameExpression node)
 {
     node.AddVariableReference(_globalScope, _bindRefs, Reference(node.Name));
     return(true);
 }
Exemplo n.º 3
0
 public override bool Walk(NameExpression node) {
     node.AddVariableReference(_globalScope, _bindRefs, Reference(node.Name));
     return true;
 }