/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | statement.h | 24 class Statement : public AstNode { class 26 Statement() = delete; 27 ~Statement() override = default; 29 NO_COPY_OPERATOR(Statement); 30 NO_MOVE_SEMANTIC(Statement); 40 explicit Statement(AstNodeType type) : AstNode(type) {} in Statement() function in ark::es2panda::ir::Statement 41 explicit Statement(AstNodeType type, ModifierFlags flags) : AstNode(type, flags) {} in Statement() function in ark::es2panda::ir::Statement 42 Statement(Statement const &other) : AstNode(static_cast<AstNode const &>(other)) {} in Statement() function in ark::es2panda::ir::Statement
|
H A D | typed.h | 123 class TypedStatement : public Typed<Statement> { 132 explicit TypedStatement(AstNodeType type) : Typed<Statement>(type) {}; in TypedStatement() 133 explicit TypedStatement(AstNodeType type, ModifierFlags flags) : Typed<Statement>(type, flags) {}; in TypedStatement() 135 TypedStatement(TypedStatement const &other) : Typed<Statement>(static_cast<Typed<Statement> const &>(other)) {} in TypedStatement() 140 class AnnotatedStatement : public Annotated<Statement> { 149 explicit AnnotatedStatement(AstNodeType type, TypeNode *typeAnnotation) : Annotated<Statement>(type, typeAnnotation) in AnnotatedStatement() 153 explicit AnnotatedStatement(AstNodeType type) : Annotated<Statement>(type) {} in AnnotatedStatement() 154 explicit AnnotatedStatement(AstNodeType type, ModifierFlags flags) : Annotated<Statement>(type, flags) {} in AnnotatedStatement() 157 : Annotated<Statement>(static_cas in AnnotatedStatement() [all...] |
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | ifStatement.h | 34 class IfStatement : public Statement { 36 explicit IfStatement(Expression *test, Statement *consequent, Statement *alternate) in IfStatement() 37 : Statement(AstNodeType::IF_STATEMENT), in IfStatement() 49 const Statement *Consequent() const in Consequent() 54 const Statement *Alternate() const in Alternate() 65 Statement *UpdateIfStatementChildStatement(const NodeUpdater &cb, 67 Statement *statement) const; 70 Statement *consequent_; 71 Statement *alternate [all...] |
H A D | blockStatement.h | 36 class BlockStatement : public Statement { 38 explicit BlockStatement(binder::Scope *scope, ArenaVector<Statement *> &&statementList) in BlockStatement() 39 : Statement(AstNodeType::BLOCK_STATEMENT), scope_(scope), statements_(std::move(statementList)) in BlockStatement() 48 const ArenaVector<Statement *> &Statements() const in Statements() 53 void AddStatementAtPos(size_t insertPos, Statement *statement); 63 ArenaVector<Statement *> statements_;
|
H A D | switchCaseStatement.h | 34 class SwitchCaseStatement : public Statement { 36 explicit SwitchCaseStatement(Expression *test, ArenaVector<Statement *> &&consequent) in SwitchCaseStatement() 37 : Statement(AstNodeType::SWITCH_CASE_STATEMENT), test_(test), consequent_(std::move(consequent)) in SwitchCaseStatement() 46 const ArenaVector<Statement *> &Consequent() const in Consequent() 59 ArenaVector<Statement *> consequent_;
|
H A D | labelledStatement.h | 35 class LabelledStatement : public Statement { 37 explicit LabelledStatement(Identifier *ident, Statement *body) in LabelledStatement() 38 : Statement(AstNodeType::LABELLED_STATEMENT), ident_(ident), body_(body) in LabelledStatement() 42 const Statement *Body() const in Body() 60 Statement *body_;
|
H A D | forInStatement.h | 40 explicit ForInStatement(binder::LoopScope *scope, AstNode *left, Expression *right, Statement *body) in ForInStatement() 65 Statement *Body() in Body() 70 const Statement *Body() const in Body() 84 Statement *body_;
|
/arkcompiler/ets_frontend/ets2panda/ir/statements/ |
H A D | ifStatement.h | 29 class IfStatement final : public Statement { 37 explicit IfStatement(Expression *test, Statement *consequent, Statement *alternate) in IfStatement() 38 : Statement(AstNodeType::IF_STATEMENT), test_(test), consequent_(consequent), alternate_(alternate) in IfStatement() 52 [[nodiscard]] const Statement *Consequent() const noexcept 57 [[nodiscard]] Statement *Consequent() noexcept 62 [[nodiscard]] Statement *Alternate() noexcept 67 [[nodiscard]] const Statement *Alternate() const noexcept 91 Statement *consequent_; 92 Statement *alternate [all...] |
H A D | tryStatement.h | 41 class TryStatement : public Statement { 44 ArenaVector<std::pair<compiler::LabelPair, const Statement *>> finalizerInsertions) in TryStatement() 45 : Statement(AstNodeType::TRY_STATEMENT), in TryStatement() 56 ArenaVector<Statement *> finalizerInsertionsStatement) in TryStatement() 57 : Statement(AstNodeType::TRY_STATEMENT), in TryStatement() 86 std::pair<compiler::LabelPair, const Statement *> AddFinalizerInsertion(compiler::LabelPair insertion, in AddFinalizerInsertion() 87 const Statement *insertionStmt) in AddFinalizerInsertion() 89 finalizerInsertions_.push_back(std::pair<compiler::LabelPair, const Statement *>(insertion, insertionStmt)); in AddFinalizerInsertion() 134 ArenaVector<std::pair<compiler::LabelPair, const Statement *>> finalizerInsertions_;
|
H A D | blockStatement.h | 26 class BlockStatement : public Statement { 28 explicit BlockStatement(ArenaAllocator *allocator, ArenaVector<Statement *> &&statementList) in BlockStatement() 29 : Statement(AstNodeType::BLOCK_STATEMENT), in BlockStatement() 58 const ArenaVector<Statement *> &Statements() const in Statements() 63 ArenaVector<Statement *> &Statements() in Statements() 92 ArenaVector<Statement *> statements_;
|
H A D | labelledStatement.h | 29 class LabelledStatement : public Statement { 31 explicit LabelledStatement(Identifier *ident, Statement *body) in LabelledStatement() 32 : Statement(AstNodeType::LABELLED_STATEMENT), ident_(ident), body_(body) in LabelledStatement() 39 const Statement *Body() const in Body() 73 Statement *body_;
|
H A D | switchCaseStatement.h | 24 class SwitchCaseStatement : public Statement { 32 explicit SwitchCaseStatement(Expression *test, ArenaVector<Statement *> &&consequent) in SwitchCaseStatement() 33 : Statement(AstNodeType::SWITCH_CASE_STATEMENT), test_(test), consequent_(std::move(consequent)) in SwitchCaseStatement() 47 [[nodiscard]] const ArenaVector<Statement *> &Consequent() const noexcept 72 ArenaVector<Statement *> consequent_;
|
H A D | doWhileStatement.h | 30 explicit DoWhileStatement(Statement *body, Expression *test) in DoWhileStatement() 35 const Statement *Body() const in Body() 40 Statement *Body() in Body() 71 Statement *body_;
|
H A D | whileStatement.h | 30 explicit WhileStatement(Expression *test, Statement *body) in WhileStatement() 45 const Statement *Body() const in Body() 50 Statement *Body() in Body() 72 Statement *body_;
|
H A D | forInStatement.h | 30 explicit ForInStatement(AstNode *left, Expression *right, Statement *body) in ForInStatement() 55 Statement *Body() in Body() 60 const Statement *Body() const in Body() 83 Statement *body_;
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A D | tsModuleBlock.h | 32 class TSModuleBlock : public Statement { 34 explicit TSModuleBlock(ArenaVector<Statement *> &&statements) in TSModuleBlock() 35 : Statement(AstNodeType::TS_MODULE_BLOCK), statements_(std::move(statements)) in TSModuleBlock() 39 const ArenaVector<Statement *> &Statements() const in Statements() 44 ArenaVector<Statement *> &Statements() in Statements() 49 void AddStatementInFront(Statement *statement); 58 ArenaVector<Statement *> statements_;
|
H A D | tsModuleDeclaration.h | 35 class TSModuleDeclaration : public Statement { 37 explicit TSModuleDeclaration(binder::TSModuleScope *scope, Expression *name, Statement *body, bool declare, in TSModuleDeclaration() 39 : Statement(AstNodeType::TS_MODULE_DECLARATION), in TSModuleDeclaration() 59 const Statement *Body() const in Body() 64 Statement *Body() in Body() 93 Statement *body_;
|
/arkcompiler/ets_frontend/es2panda/ir/module/ |
H A D | exportNamedDeclaration.h | 36 class ExportNamedDeclaration : public Statement { 40 : Statement(AstNodeType::EXPORT_NAMED_DECLARATION), in ExportNamedDeclaration() 49 explicit ExportNamedDeclaration(Statement *decl, ArenaVector<ExportSpecifier *> &&specifiers) in ExportNamedDeclaration() 50 : Statement(AstNodeType::EXPORT_NAMED_DECLARATION), in ExportNamedDeclaration() 59 const Statement *Decl() const in Decl() 64 Statement *Decl() in Decl() 69 void SetDecl(Statement *decl) in SetDecl() 97 Statement *decl_;
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | ETSparserStatements.cpp | 124 ArenaVector<ir::Statement *> ETSParser::ParseTopLevelStatements() in ParseTopLevelStatements() 126 ArenaVector<ir::Statement *> statements(Allocator()->Adapter()); in ParseTopLevelStatements() 141 static ir::Statement *ValidateExportableStatement(ETSParser *parser, ir::Statement *stmt, in ValidateExportableStatement() 154 ir::Statement *ETSParser::ParseTopLevelDeclStatement(StatementParsingFlags flags) in ParseTopLevelDeclStatement() 163 ir::Statement *result = nullptr; in ParseTopLevelDeclStatement() 205 ir::Statement *ETSParser::ParseTopLevelStatement() in ParseTopLevelStatement() 216 ArenaVector<ir::Statement *> ETSParser::ParseTopLevelDeclaration() in ParseTopLevelDeclaration() 241 ir::Statement *ETSParser::ParseFunctionStatement(const StatementParsingFlags flags) in ParseFunctionStatement() 249 ir::Statement *ETSParse [all...] |
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/topLevelStmts/ |
H A D | globalClassHandler.h | 31 ArenaVector<ir::Statement *> statements; 49 void SetupGlobalMethods(parser::Program *program, ArenaVector<ir::Statement *> &&statements, 54 ir::MethodDefinition *CreateGlobalMethod(const std::string_view name, ArenaVector<ir::Statement *> &&statements); 57 ArenaVector<ir::Statement *> FormInitMethodStatements(parser::Program *program, 61 void FormDependentInitTriggers(ArenaVector<ir::Statement *> &statements, 71 ArenaVector<ir::Statement *> CollectProgramGlobalStatements(parser::Program *program, ir::ClassDefinition *classDef,
|
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | ifStatementBuilder.h | 35 IfStatementBuilder &SetConsequent(Statement *conseq) in SetConsequent() 41 IfStatementBuilder &SetAlternate(Statement *alternate) in SetAlternate() 55 Statement *consequent_ {}; 56 Statement *alternate_ {};
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | blockExpression.h | 36 explicit BlockExpression(ArenaVector<ir::Statement *> &&statements); 39 [[nodiscard]] ArenaVector<ir::Statement *> const &Statements() const noexcept 44 [[nodiscard]] ArenaVector<ir::Statement *> &Statements() noexcept 49 void AddStatements(ArenaVector<ir::Statement *> const &statements) in AddStatements() 52 [this](ir::Statement *statement) { in AddStatements() 61 void AddStatement(ir::Statement *statement) in AddStatement() 108 ArenaVector<ir::Statement *> statements_;
|
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | scopedDebugInfoPlugin-inl.h | 24 void ScopedDebugInfoPlugin::RegisterPrologueEpilogue(ir::BlockStatement *block, ir::Statement *stmt) in RegisterPrologueEpilogue() 31 ArenaVector<ir::Statement *> vec(1, stmt, Allocator()->Adapter()); in RegisterPrologueEpilogue() 34 std::make_pair(vec, ArenaVector<ir::Statement *>(Allocator()->Adapter()))); in RegisterPrologueEpilogue() 37 std::make_pair(ArenaVector<ir::Statement *>(Allocator()->Adapter()), vec)); in RegisterPrologueEpilogue()
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsModuleBlock.h | 23 class TSModuleBlock : public Statement { 25 explicit TSModuleBlock(ArenaVector<Statement *> &&statements) in TSModuleBlock() 26 : Statement(AstNodeType::TS_MODULE_BLOCK), statements_(std::move(statements)) in TSModuleBlock() 51 const ArenaVector<Statement *> &Statements() const in Statements() 72 ArenaVector<Statement *> statements_;
|
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | statement.h | 23 class Statement : public AstNode { class 31 explicit Statement(AstNodeType type) : AstNode(type) {} in Statement() function in panda::es2panda::ir::Statement 32 void UpdateForMultipleTransformedStatements(const NodeUpdater &cb, ArenaVector<Statement *> &originStatements);
|