src/main/java/com/bazaarvoice/jless/ast/node/ScopeNode.java
@Override
    protected void cloneChildren(InternalNode node) {
        ScopeNode scope = (ScopeNode) node;

        // Reset internal state
        scope._variableNameToValueMap = new HashMap<String, ExpressionGroupNode>();
        scope._selectorToRuleSetMap = new HashMap<String, RuleSetNode>();
        scope._parameterDefinitions = new ArrayList<VariableDefinitionNode>();
        scope._propertyNameToNodeMap = new HashMap<String, PropertyNode>();
        scope.setAdditionVisitor();

        super.cloneChildren(node);
    }
@Override
    protected void cloneChildren(InternalNode node) {
        ScopeNode scope = (ScopeNode) node;

        // Reset internal state
        scope._variableNameToValueMap = new HashMap<String, ExpressionGroupNode>();
        scope._selectorToRuleSetMap = new HashMap<String, RuleSetNode>();
        scope._parameterDefinitions = new ArrayList<VariableDefinitionNode>();
        scope._propertyNameToNodeMap = new HashMap<String, PropertyNode>();
        scope.setAdditionVisitor();

        super.cloneChildren(node);
    }
@ Override protected void cloneChildren ( InternalNode node ) { ScopeNode scope = ( ScopeNode ) node ; // Reset internal state scope . _variableNameToValueMap = new HashMap < String , ExpressionGroupNode > ( ) ; scope . _selectorToRuleSetMap = new HashMap < String , RuleSetNode > ( ) ; scope . _parameterDefinitions = new ArrayList < VariableDefinitionNode > ( ) ; scope . _propertyNameToNodeMap = new HashMap < String , PropertyNode > ( ) ; scope . setAdditionVisitor ( ) ; super . cloneChildren ( node ) ; }
Recreate internal state before children are cloned.
Recreate internal state before children are cloned .