|
|
@@ -64,9 +64,15 @@ proto.matchesSingleElement = function matchesSingleElement(e) {
|
|
|
proto.shallowClone = function shallowClone(){
|
|
|
// File: expression_tree.h lines: 86-91
|
|
|
var clone = new OrMatchExpression();
|
|
|
+
|
|
|
for (var i = 0; i < this.numChildren(); i++) {
|
|
|
clone.add(this.getChild(i).shallowClone());
|
|
|
}
|
|
|
+
|
|
|
+ if (this.getTag()) {
|
|
|
+ clone.setTag(this.getTag().clone());
|
|
|
+ }
|
|
|
+
|
|
|
return clone;
|
|
|
};
|
|
|
|