public override bool Walk(ObjectLiteralProperty node)
 {
     if (node != null)
     {
         // don't care about the property names; just recurse the values
         if (node.Value != null)
         {
             node.Value.Walk(this);
         }
     }
     return false;
 }
示例#2
0
 public override bool Walk(ObjectLiteralProperty node) { AddNode(node); return true; }
示例#3
0
 public override bool Walk(ObjectLiteralProperty node) {
     if (node.Name is GetterSetter) {
         ReplaceFollowingWhiteSpace(node.Name.GetStartIndex(_tree.LocationResolver) + "get".Length, " ");
         node.Value.Walk(this);
     } else {
         node.Name.Walk(this);
         ReplacePreceedingWhiteSpace(node.Value.GetStartIndex(_tree.LocationResolver), " ");
         node.Value.Walk(this);
     }
     return false;
 }