コード例 #1
0
 internal LocationMatcher(TreeLocation _enclosing, IDictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer)
 {
     this._enclosing   = _enclosing;
     this.newNodeNames = newNodeNames;
     this.coindexer    = coindexer;
     this.childMatcher = this._enclosing.child.Matcher(newNodeNames, coindexer);
 }
コード例 #2
0
 public InsertNode(AuxiliaryTree t, TreeLocation l)
     : this(new HoldTreeNode(t), l)
 {
     // Copy occurs in HoldTreeNode's `evaluate` method
     needsCopy = false;
 }
コード例 #3
0
 public InsertNode(TsurgeonPattern child, TreeLocation l)
     : base("insert", new TsurgeonPattern[] { child })
 {
     this.location = l;
 }
コード例 #4
0
 public MoveNode(TsurgeonPattern child, TreeLocation l)
     : base("move", new TsurgeonPattern[] { child })
 {
     this.location = l;
 }