Exemple #1
0
            public LocationMatcher(Dictionary<string, Tree> newNodeNames, CoindexationGenerator coindexer,
                TreeLocation location)
            {
                this.newNodeNames = newNodeNames;
                this.coindexer = coindexer;
                this.location = location;

                this.childMatcher = location.child.GetMatcher(newNodeNames, coindexer);
            }
            public LocationMatcher(Dictionary <string, Tree> newNodeNames, CoindexationGenerator coindexer,
                                   TreeLocation location)
            {
                this.newNodeNames = newNodeNames;
                this.coindexer    = coindexer;
                this.location     = location;

                this.childMatcher = location.child.GetMatcher(newNodeNames, coindexer);
            }
Exemple #3
0
 public InsertNode(AuxiliaryTree t, TreeLocation l) :
     this(new HoldTreeNode(t), l)
 {
     // Copy occurs in HoldTreeNode's `evaluate` method
     needsCopy = false;
 }
Exemple #4
0
 public InsertNode(TsurgeonPattern child, TreeLocation l) :
     base("insert", new TsurgeonPattern[] { child })
 {
     this.location = l;
 }
Exemple #5
0
 public MoveNode(TsurgeonPattern child, TreeLocation l) :
     base("move", new TsurgeonPattern[] { child })
 {
     this.location = l;
 }
Exemple #6
0
 public InsertNode(AuxiliaryTree t, TreeLocation l) :
     this(new HoldTreeNode(t), l)
 {
     // Copy occurs in HoldTreeNode's `evaluate` method
     needsCopy = false;
 }
Exemple #7
0
 public InsertNode(TsurgeonPattern child, TreeLocation l) :
     base("insert", new TsurgeonPattern[] {child})
 {
     this.location = l;
 }
Exemple #8
0
 public MoveNode(TsurgeonPattern child, TreeLocation l) :
     base("move", new TsurgeonPattern[] {child})
 {
     this.location = l;
 }