Lines Matching full:compiler
16 import { Compiler, ControlFlowChange } from "../compiler";
172 protected compiler: Compiler; property in TryBuilderBase
177 constructor(compiler: Compiler, pandaGen: PandaGen, Stmt: ts.Statement) {
178 this.compiler = compiler;
190 // compiler just handle the basic controlFlow
193 constructor(compiler: Compiler, pandaGen: PandaGen, tryStmt: ts.TryStatement) {
194 super(compiler, pandaGen, tryStmt)
204 this.compiler.compileStatement((<ts.TryStatement>this.stmt).tryBlock);
206 // when compiler is out of TryBlock, reset tryStatement
212 this.compiler.compileStatement((<ts.TryStatement>this.stmt).finallyBlock!);
219 this.compiler.pushScope(catchClause);
220 compileCatchClauseVariableDeclaration(this.compiler, catchClause.variableDeclaration);
222 this.compiler.pushScope(catchBlock);
223 catchBlock.statements.forEach((stmt) => this.compiler.compileStatement(stmt));
224 this.compiler.popScope();
225 this.compiler.popScope();
230 this.compiler.compileStatement((<ts.TryStatement>this.stmt).finallyBlock!);
239 this.compiler.compileStatement((<ts.TryStatement>this.stmt).finallyBlock!);
250 …constructor(compiler: Compiler, pandaGen: PandaGen, forOfStmt: ts.ForOfStatement, doneReg: VReg, i…
251 super(compiler, pandaGen, forOfStmt);
262 let compiler = <Compiler>this.compiler;
269 let loopScope = <LoopScope>compiler.getRecorder().getScopeOfNode(stmt);
277 compiler.pushEnv(<VReg>this.loopEnv);
291 let lref = LReference.generateLReference(this.compiler, stmt.initializer, isDeclaration);
295 this.compiler.compileStatement(stmt.statement);
353 function compileCatchClauseVariableDeclaration(compiler: Compiler, param: ts.VariableDeclaration | …
355 compiler.compileVariableDeclaration(param);