Ejemplo n.º 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);
            }
Ejemplo n.º 2
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);
            }
Ejemplo n.º 3
0
 public InsertNode(AuxiliaryTree t, TreeLocation l) :
     this(new HoldTreeNode(t), l)
 {
     // Copy occurs in HoldTreeNode's `evaluate` method
     needsCopy = false;
 }
Ejemplo n.º 4
0
 public InsertNode(TsurgeonPattern child, TreeLocation l) :
     base("insert", new TsurgeonPattern[] { child })
 {
     this.location = l;
 }
Ejemplo n.º 5
0
 public MoveNode(TsurgeonPattern child, TreeLocation l) :
     base("move", new TsurgeonPattern[] { child })
 {
     this.location = l;
 }
Ejemplo n.º 6
0
 public InsertNode(AuxiliaryTree t, TreeLocation l) :
     this(new HoldTreeNode(t), l)
 {
     // Copy occurs in HoldTreeNode's `evaluate` method
     needsCopy = false;
 }
Ejemplo n.º 7
0
 public InsertNode(TsurgeonPattern child, TreeLocation l) :
     base("insert", new TsurgeonPattern[] {child})
 {
     this.location = l;
 }
Ejemplo n.º 8
0
 public MoveNode(TsurgeonPattern child, TreeLocation l) :
     base("move", new TsurgeonPattern[] {child})
 {
     this.location = l;
 }