public override bool Walk(ReturnNode node) {
     UpdateChildRanges(node);
     return base.Walk(node);
 }
                public override bool Walk(ReturnNode node) {
                    if (node.Operand is Lookup &&
                        ((Lookup)node.Operand).VariableField == _clonedVar) {
                        ReturnsClonedVar = true;
                        return false;
                    }

                    return base.Walk(node);
                }
Esempio n. 3
0
 public override bool Walk(ReturnNode node) { AddNode(node); return true; }
 public override bool Walk(ReturnNode node)
 {
     if (node != null)
     {
         if (node.Operand != null)
         {
             node.Operand.Walk(this);
         }
     }
     return false;
 }
 public override bool Walk(ReturnNode node) {
     CheckStatement(node);
     return base.Walk(node);
 }
Esempio n. 6
0
 public override bool Walk(ReturnNode node) {
     if (node.Operand != null) {
         ReplaceFollowingWhiteSpace(node.GetStartIndex(_tree.LocationResolver) + "return".Length, " ");
         node.Operand.Walk(this);
     }
     RemoveSemiColonWhiteSpace(node.GetEndIndex(_tree.LocationResolver));
     return false;
 }