protected void fixClonedDeclarations ( GroupElement and , Map < String , Class < ? > > globals ) { Stack < RuleConditionElement > contextStack = new Stack < RuleConditionElement > ( ) ; DeclarationScopeResolver resolver = new DeclarationScopeResolver ( globals , contextStack ) ; contextStack . push ( and ) ; processElement ( resolver , contextStack , and ) ; contextStack . pop ( ) ; }
During the logic transformation we eventually clone CEs specially patterns and corresponding declarations . So now we need to fix any references to cloned declarations .