Home
last modified time | relevance | path

Searched refs:TryStatement (Results 1 – 14 of 14) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/statement/
DtryStatement.ts33 …port function transformTryCatchFinally(tryStmt: ts.TryStatement, recorder: Recorder): ts.TryStatem…
79 this.depth = TryStatement.getcurrentTryStatementDepth();
107 export class TryStatement { class
108 private static currentTryStatement: TryStatement | undefined;
110 private outer: TryStatement | undefined;
117 TryStatement.currentTryStatementDepth++;
118 this.outer = TryStatement.currentTryStatement;
139 TryStatement.currentTryStatement = this;
143 TryStatement.currentTryStatementDepth--;
144 TryStatement.currentTryStatement = this.outer;
[all …]
DlabelTarget.ts19 import { TryStatement } from "./tryStatement";
32 private tryStatement: TryStatement | undefined;
40 this.tryStatement = TryStatement.getCurrentTryStatement();
63 getTryStatement(): TryStatement {
99 if (TryStatement.getCurrentTryStatement()) {
100 TryStatement.getCurrentTryStatement().increaseLoopEnvLevel();
111 if (TryStatement.getCurrentTryStatement()) {
112 TryStatement.getCurrentTryStatement().decreaseLoopEnvLevel();
/arkcompiler/ets_frontend/es2panda/ir/statements/
DtryStatement.cpp27 void TryStatement::Iterate(const NodeTraverser &cb) const in Iterate()
40 void TryStatement::Dump(ir::AstDumper *dumper) const in Dump()
48 void TryStatement::CompileFinally(compiler::PandaGen *pg, compiler::TryContext *tryCtx, in CompileFinally()
73 void TryStatement::CompileTryCatchFinally(compiler::PandaGen *pg) const in CompileTryCatchFinally()
100 void TryStatement::CompileTryFinally(compiler::PandaGen *pg) const in CompileTryFinally()
127 void TryStatement::CompileTryCatch(compiler::PandaGen *pg) const in CompileTryCatch()
145 void TryStatement::Compile(compiler::PandaGen *pg) const in Compile()
158 checker::Type *TryStatement::Check(checker::Checker *checker) const in Check()
173 void TryStatement::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) in UpdateSelf()
DtryStatement.h37 class TryStatement : public Statement {
39 … explicit TryStatement(BlockStatement *block, CatchClause *catchClause, BlockStatement *finalizer) in TryStatement() function
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-try-statement-expected.txt5 "type": "TryStatement",
87 "type": "TryStatement",
156 "type": "TryStatement",
198 "type": "TryStatement",
267 "type": "TryStatement",
Dtest-labelled-statement-expected.txt430 "type": "TryStatement",
/arkcompiler/ets_frontend/es2panda/compiler/core/
DdynamicContext.h25 class TryStatement; variable
185 explicit TryContext(PandaGen *pg, const ir::TryStatement *tryStmt, bool hasFinalizer = true)
232 const ir::TryStatement *tryStmt_ {};
/arkcompiler/ets_frontend/ts2panda/src/
Dcompiler.ts110 TryStatement
438 case ts.SyntaxKind.TryStatement: // line 290
439 this.compileTryStatement(<ts.TryStatement>stmt);
624 …let popTimes = TryStatement.getCurrentTryStatement() ? TryStatement.getCurrentTryStatement().getLo…
631 …compileFinallyBeforeCFC(endTry: TryStatement | undefined, cfc: ControlFlowChange, continueTargetLa…
632 let startTry = TryStatement.getCurrentTryStatement();
642 let saveTry = TryStatement.getCurrentTryStatement();
643 TryStatement.setCurrentTryStatement(startTry.getOuterTryStatement());
649 TryStatement.setCurrentTryStatement(saveTry);
713 private compileTryStatement(stmt: ts.TryStatement): void {
Drecorder.ts155 case ts.SyntaxKind.TryStatement:
/arkcompiler/ets_frontend/es2panda/ir/
DastNodeMapping.h140 _(TRY_STATEMENT, TryStatement) \
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.h88 class TryStatement; variable
528 ir::TryStatement *ParseTryStatement();
DstatementParser.cpp1866 ir::TryStatement *ParserImpl::ParseTryStatement() in ParseTryStatement()
1903 auto *tryStatement = AllocNode<ir::TryStatement>(body, catchClause, finnalyClause); in ParseTryStatement()
/arkcompiler/ets_frontend/es2panda/typescript/
Dchecker.h84 class TryStatement; variable
/arkcompiler/ets_frontend/legacy_bin/api8/src/
Dindex.js2 …ment",l[l.ThrowStatement=249]="ThrowStatement",l[l.TryStatement=250]="TryStatement",l[l.DebuggerSt…