Lines Matching refs:node
47 prepare(node: ts.Node): void {
53 pandaGen.label(node, this.beginLabel);
56 await(node: ts.Node): void {
58 this.functionAwait(node);
59 this.handleMode(node);
62 explicitReturn(node: ts.Node | NodeKind, empty ? : boolean): void {
64 this.pg.asyncFunctionResolve(node, this.funcObj);
65 this.pg.return(node);
68 implicitReturn(node: ts.Node | NodeKind): void {
69 this.pg.loadAccumulator(node, getVregisterCache(this.pg, CacheList.UNDEFINED));
70 this.pg.asyncFunctionResolve(node, this.funcObj);
71 this.pg.return(node);
74 private handleMode(node: ts.Node): void {
78 pandaGen.getResumeMode(node, this.funcObj);
79 pandaGen.storeAccumulator(node, modeType);
82 pandaGen.loadAccumulatorInt(node, ResumeMode.THROW);
87 pandaGen.condition(node, ts.SyntaxKind.EqualsEqualsToken, modeType, notThrowLabel);
88 pandaGen.loadAccumulator(node, this.resumeVal);
89 pandaGen.throw(node);
94 pandaGen.label(node, notThrowLabel);
95 pandaGen.loadAccumulator(node, this.resumeVal);
98 resolve(node: ts.Node | NodeKind, value: VReg): void {
100 pandaGen.loadAccumulator(node, value);
101 pandaGen.asyncFunctionResolve(node, this.funcObj);
104 cleanUp(node: ts.Node): void {
107 pandaGen.label(node, this.endLabel);