/arkcompiler/ets_frontend/ets2panda/ir/ |
D | statement.h | 24 class Statement : public AstNode { 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 41 explicit Statement(AstNodeType type, ModifierFlags flags) : AstNode(type, flags) {} in Statement() function 42 Statement(Statement const &other) : AstNode(static_cast<AstNode const &>(other)) {} in Statement() function 45 class TypedStatement : public Typed<Statement> { 54 explicit TypedStatement(AstNodeType type) : Typed<Statement>(type) {}; in TypedStatement() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
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_;
|
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_;
|
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_;
|
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_;
|
D | loopStatement.h | 35 class LoopStatement : public Statement { 64 …explicit LoopStatement(AstNodeType type, binder::LoopScope *scope) : Statement(type), scope_(scope… in LoopStatement() 66 …Statement *UpdateChildStatement(const NodeUpdater &cb, const binder::Binder *binder, Statement *st…
|
D | doWhileStatement.h | 40 explicit DoWhileStatement(binder::LoopScope *scope, Statement *body, Expression *test) in DoWhileStatement() 45 const Statement *Body() const in Body() 50 Statement *Body() in Body() 72 Statement *body_;
|
D | whileStatement.h | 40 explicit WhileStatement(binder::LoopScope *scope, Expression *test, Statement *body) in WhileStatement() 55 const Statement *Body() const in Body() 60 Statement *Body() in Body() 73 Statement *body_;
|
D | forInStatement.h | 40 …explicit ForInStatement(binder::LoopScope *scope, AstNode *left, Expression *right, Statement *bod… in ForInStatement() 65 Statement *Body() in Body() 70 const Statement *Body() const in Body() 84 Statement *body_;
|
D | forUpdateStatement.h | 41 Statement *body) in ForUpdateStatement() 80 Statement *Body() in Body() 85 const Statement *Body() const in Body() 100 Statement *body_;
|
/arkcompiler/ets_frontend/ets2panda/ir/statements/ |
D | ifStatement.h | 29 class IfStatement : public Statement { 31 explicit IfStatement(Expression *test, Statement *consequent, Statement *alternate) in IfStatement() 32 …: Statement(AstNodeType::IF_STATEMENT), test_(test), consequent_(consequent), alternate_(alternate) in IfStatement() 45 const Statement *Consequent() const in Consequent() 50 Statement *Alternate() in Alternate() 55 const Statement *Alternate() const in Alternate() 86 Statement *consequent_; 87 Statement *alternate_;
|
D | tryStatement.h | 39 class TryStatement : public Statement { 42 … ArenaVector<std::pair<compiler::LabelPair, const Statement *>> finalizerInsertions) in TryStatement() 43 : Statement(AstNodeType::TRY_STATEMENT), in TryStatement() 66 …std::pair<compiler::LabelPair, const Statement *> AddFinalizerInsertion(compiler::LabelPair insert… in AddFinalizerInsertion() 67 … const Statement *insertionStmt) in AddFinalizerInsertion() 69 …finalizerInsertions_.push_back(std::pair<compiler::LabelPair, const Statement *>(insertion, insert… in AddFinalizerInsertion() 105 ArenaVector<std::pair<compiler::LabelPair, const Statement *>> finalizerInsertions_;
|
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() 53 const ArenaVector<Statement *> &Statements() const in Statements() 58 ArenaVector<Statement *> &Statements() in Statements() 93 ArenaVector<Statement *> statements_;
|
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() 74 Statement *body_;
|
D | switchCaseStatement.h | 24 class SwitchCaseStatement : public Statement { 26 explicit SwitchCaseStatement(Expression *test, ArenaVector<Statement *> &&consequent) in SwitchCaseStatement() 27 … : Statement(AstNodeType::SWITCH_CASE_STATEMENT), test_(test), consequent_(std::move(consequent)) in SwitchCaseStatement() 41 const ArenaVector<Statement *> &Consequent() const in Consequent() 71 ArenaVector<Statement *> consequent_;
|
D | whileStatement.h | 30 explicit WhileStatement(Expression *test, Statement *body) in WhileStatement() 45 const Statement *Body() const in Body() 50 Statement *Body() in Body() 78 Statement *body_;
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
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_;
|
D | tsModuleDeclaration.h | 35 class TSModuleDeclaration : public Statement { 37 …explicit TSModuleDeclaration(binder::TSModuleScope *scope, Expression *name, Statement *body, bool… 39 : Statement(AstNodeType::TS_MODULE_DECLARATION), in Statement() function 59 const Statement *Body() const in Body() 64 Statement *Body() in Body() 93 Statement *body_;
|
/arkcompiler/ets_frontend/es2panda/ir/module/ |
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/arkguard/src/transformers/layout/ |
D | DisableHilogTransformer.ts | 35 Statement, 79 const deletedStatements: Statement[] = deleteHilogStatement(visitedAst.statements); 89 const newStatements: Statement[] = deleteHilogStatement(visitedBlock.statements); 94 function deleteHilogStatement(statements: NodeArray<Statement>): Statement[] { 95 const reservedStatements: Statement[] = []; 115 function isHilogImportStatement(node: Statement): boolean { 120 function isSimpleHilogStatement(node: Statement): boolean {
|
D | DisableConsoleTransformer.ts | 41 Statement, 92 const deletedStatements: Statement[] = deleteConsoleStatement(visitedAst.statements); 115 function deleteConsoleStatement(statements: NodeArray<Statement>): Statement[] { 116 const reservedStatements: Statement[] = []; 126 function isSimpleConsoleStatement(node: Statement): boolean {
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
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() 45 const ArenaVector<Statement *> &Statements() const in Statements() 66 ArenaVector<Statement *> statements_;
|
D | tsModuleDeclaration.h | 25 class TSModuleDeclaration : public Statement { 27 …explicit TSModuleDeclaration(ArenaAllocator *allocator, Expression *name, Statement *body, bool de… in TSModuleDeclaration() 29 : Statement(AstNodeType::TS_MODULE_DECLARATION), in TSModuleDeclaration() 59 const Statement *Body() const in Body() 107 Statement *body_;
|
/arkcompiler/ets_frontend/ets2panda/parser/ |
D | ETSparser.h | 80 ArenaVector<ir::Statement *> CreateStatements(std::string_view sourceCode, 83 ArenaVector<ir::Statement *> CreateFormattedStatements(std::string_view sourceCode, 88 ArenaVector<ir::Statement *> CreateFormattedStatements(std::string_view const sourceCode, in CreateFormattedStatements() 107 void ParsePackageDeclaration(ArenaVector<ir::Statement *> &statements); 108 ArenaVector<ir::AstNode *> ParseTopLevelStatements(ArenaVector<ir::Statement *> &statements); 109 …void ParseTopLevelType(ArenaVector<ir::Statement *> &statements, bool &defaultExport, std::size_t … 110 std::function<ir::Statement *(ETSParser *)> const &parserFunction); 111 …void ParseTopLevelNextToken(ArenaVector<ir::Statement *> &statements, ArenaVector<ir::AstNode *> &… 113 …void ParseTopLevelNextTokenDefault(ArenaVector<ir::Statement *> &statements, ir::ScriptFunction *i… 116 lexer::SourcePosition ParseTopLevelNextTokenResolution(ArenaVector<ir::Statement *> &statements, [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/ |
D | statement.h | 23 class Statement : public AstNode { 31 explicit Statement(AstNodeType type) : AstNode(type) {} in Statement() function 32 …void UpdateForMultipleTransformedStatements(const NodeUpdater &cb, ArenaVector<Statement *> &origi…
|