def prepareCodeGeneration(tree): visitor = FinalizeMarkups() Operations.visitTree( tree, visitor ) for function in tree.getUsedFunctions(): Operations.visitTree( function, visitor ) visitor = FinalizeClosureTaking() for function in tree.getUsedFunctions(): Operations.visitFunction( function, visitor ) visitor = FinalizeVariableVisibility() Operations.visitFunction( tree, visitor ) for function in tree.getUsedFunctions(): Operations.visitFunction( function, visitor )
def prepareCodeGeneration(tree): visitor = FinalizeMarkups() Operations.visitTree(tree, visitor) for function in tree.getUsedFunctions(): Operations.visitTree(function, visitor) visitor = FinalizeClosureTaking() for function in tree.getUsedFunctions(): Operations.visitFunction(function, visitor) visitor = FinalizeVariableVisibility() Operations.visitFunction(tree, visitor) for function in tree.getUsedFunctions(): Operations.visitFunction(function, visitor)
def prepareCodeGeneration(tree): visitor = FinalizeMarkups() Operations.visitTree(tree, visitor) for function in tree.getUsedFunctions(): Operations.visitTree(function, visitor) visitor = FinalizeClassClosure() for function in tree.getUsedFunctions(): if function.hasFlag("has_super"): Operations.visitFunction(function, visitor) visitor = FinalizeClosureTaking() for function in tree.getUsedFunctions(): Operations.visitFunction(function, visitor)
def prepareCodeGeneration(tree): visitor = FinalizeMarkups() Operations.visitTree(tree, visitor)
def prepareCodeGeneration(tree): Operations.visitScopes(tree, visitor=FinalizeMarkups()) Operations.visitFunctions(tree, visitor=FinalizeClosureTaking())