Lines Matching refs:pandaGen
36 export function hoisting(rootNode: ts.SourceFile | ts.FunctionLikeDeclaration, pandaGen: PandaGen,
43 hoistVar(decl, variableScope, pandaGen);
46 hoistFunction(decl, variableScope, pandaGen, compiler, compilerDriver);
53 export function hoistVar(decl: VarDecl, scope: Scope, pandaGen: PandaGen): void {
57 pandaGen.loadAccumulator(decl.node, getVregisterCache(pandaGen, CacheList.UNDEFINED));
58 pandaGen.storeGlobalVar(decl.node, name);
61 …pandaGen.loadAccumulator(NodeKind.FIRST_NODE_OF_FUNCTION, getVregisterCache(pandaGen, CacheList.UN…
63 pandaGen.storeModuleVariable(NodeKind.FIRST_NODE_OF_FUNCTION, v);
65 pandaGen.storeAccToLexEnv(NodeKind.FIRST_NODE_OF_FUNCTION, scope, 0, v, true);
72 export function hoistFunction(decl: FuncDecl, scope: Scope, pandaGen: PandaGen, compiler: Compiler,…
78 …pandaGen.defineFunction(NodeKind.FIRST_NODE_OF_FUNCTION, <ts.FunctionDeclaration>decl.node, intern…
79 pandaGen.storeGlobalVar(NodeKind.FIRST_NODE_OF_FUNCTION, funcName);
82 …pandaGen.defineFunction(NodeKind.FIRST_NODE_OF_FUNCTION, <ts.FunctionDeclaration>decl.node, intern…
84 pandaGen.storeModuleVariable(NodeKind.FIRST_NODE_OF_FUNCTION, v);
86 pandaGen.storeAccToLexEnv(NodeKind.FIRST_NODE_OF_FUNCTION, scope, 0, v, true);
94 export function hoistFunctionInBlock(scope: Scope, pandaGen: PandaGen, strictMode: boolean, compile…
106 hoistFunction(func, scope, pandaGen, compiler, compilerDriver);