Home
last modified time | relevance | path

Searched full:statement (Results 1 – 25 of 588) sorted by relevance

12345678910>>...24

/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D8_statements.rst25 statement:
41 .. _Normal and Abrupt Statement Execution:
43 Normal and Abrupt Statement Execution
49 The actions that every statement performs in a normal mode of execution are
50 specific for the particular kind of statement. The normal modes of
51 evaluation for each kind of statement are described in the following
54 A statement execution is considered to *complete normally* if the desired
56 contrary, a statement execution is considered to *complete abruptly* if it
60 statement
62 statement execution
[all …]
/arkcompiler/ets_frontend/es2panda/ir/statements/
DifStatement.h19 #include "ir/statement.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_;
DblockStatement.h19 #include <ir/statement.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_;
DswitchCaseStatement.h19 #include <ir/statement.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_;
DlabelledStatement.h19 #include <ir/statement.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_;
DloopStatement.h19 #include <ir/statement.h>
35 class LoopStatement : public Statement {
64 …explicit LoopStatement(AstNodeType type, binder::LoopScope *scope) : Statement(type), scope_(scope… in LoopStatement()
66Statement *UpdateChildStatement(const NodeUpdater &cb, const binder::Binder *binder, Statement *st…
/arkcompiler/ets_frontend/ets2panda/ir/
Dstatement.h24 class Statement : public AstNode {
26 Statement() = delete;
27 ~Statement() override = default;
29 Statement &operator=(const Statement &) = delete;
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
Dtyped.h20 #include "ir/statement.h"
106 class TypedStatement : public Typed<Statement> {
115 explicit TypedStatement(AstNodeType type) : Typed<Statement>(type) {}; in TypedStatement()
116 … explicit TypedStatement(AstNodeType type, ModifierFlags flags) : Typed<Statement>(type, flags) {}; in TypedStatement()
118 …TypedStatement(TypedStatement const &other) : Typed<Statement>(static_cast<Typed<Statement> const … in TypedStatement()
123 class AnnotatedStatement : public Annotated<Statement> {
132 …explicit AnnotatedStatement(AstNodeType type, TypeNode *typeAnnotation) : Annotated<Statement>(typ… in AnnotatedStatement()
136 explicit AnnotatedStatement(AstNodeType type) : Annotated<Statement>(type) {} in AnnotatedStatement()
137 …explicit AnnotatedStatement(AstNodeType type, ModifierFlags flags) : Annotated<Statement>(type, fl… in AnnotatedStatement()
140 : Annotated<Statement>(static_cast<Annotated<Statement> const &>(other)) in AnnotatedStatement()
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DblockExpression.h21 #include "ir/statement.h"
36 explicit BlockExpression(ArenaVector<ir::Statement *> &&statements);
39 [[nodiscard]] ArenaVector<ir::Statement *> const &Statements() const noexcept in Statements()
44 [[nodiscard]] ArenaVector<ir::Statement *> &Statements() noexcept in Statements()
49 void AddStatements(ArenaVector<ir::Statement *> const &statements) in AddStatements()
52 [this](ir::Statement *statement) { in AddStatements()
53 if (statement != nullptr) { in AddStatements()
54 statement->SetParent(this); in AddStatements()
61 void AddStatement(ir::Statement *statement) in AddStatement() argument
63 if (statement != nullptr) { in AddStatement()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dunclosed_loop.sts22 if (sum > 0) {continue;continue;continue;}; // misplaced continue statement, out of loop
27 …22:19 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
28 …22:28 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
29 …22:37 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
30 … 24:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
Dlabeled.sts26 /* @@? 19:13 Error SyntaxError: Label must be followed by a loop statement */
27 /* @@? 20:13 Error SyntaxError: Label must be followed by a loop statement */
28 /* @@? 20:17 Error SyntaxError: Label must be followed by a loop statement */
29 /* @@? 21:13 Error SyntaxError: Label must be followed by a loop statement */
30 /* @@? 21:17 Error SyntaxError: Label must be followed by a loop statement */
31 /* @@? 21:21 Error SyntaxError: Label must be followed by a loop statement */
32 /* @@? 22:13 Error SyntaxError: Label must be followed by a loop statement */
/arkcompiler/ets_frontend/ets2panda/ir/statements/
DifStatement.h19 #include "ir/statement.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 in Consequent()
57 [[nodiscard]] Statement *Consequent() noexcept in Consequent()
62 [[nodiscard]] Statement *Alternate() noexcept in Alternate()
67 [[nodiscard]] const Statement *Alternate() const noexcept in Alternate()
91 Statement *consequent_;
92 Statement *alternate_;
DblockStatement.h19 #include "ir/statement.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()
68 void SetStatements(ArenaVector<Statement *> &&statementList) in SetStatements()
72 for (auto *statement : statements_) { in SetStatements()
73 statement->SetParent(this); in SetStatements()
101 ArenaVector<Statement *> statements_;
DtryStatement.h20 #include "ir/statement.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 insert… in AddFinalizerInsertion()
87 … const Statement *insertionStmt) in AddFinalizerInsertion()
89 …finalizerInsertions_.push_back(std::pair<compiler::LabelPair, const Statement *>(insertion, insert… in AddFinalizerInsertion()
134 ArenaVector<std::pair<compiler::LabelPair, const Statement *>> finalizerInsertions_;
DlabelledStatement.h19 #include "ir/statement.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_;
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsModuleBlock.h19 #include <ir/statement.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_;
DtsModuleDeclaration.h20 #include <ir/statement.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/ets2panda/linter/test/rules/
Drule145.ts.json43 … "suggest": "Function lacks ending return statement and return type does not include 'undefined'.",
44 … "rule": "Function lacks ending return statement and return type does not include 'undefined'.",
63 … "suggest": "Function lacks ending return statement and return type does not include 'undefined'.",
64 … "rule": "Function lacks ending return statement and return type does not include 'undefined'.",
73 … "suggest": "Function lacks ending return statement and return type does not include 'undefined'.",
74 … "rule": "Function lacks ending return statement and return type does not include 'undefined'.",
83 … "suggest": "Function lacks ending return statement and return type does not include 'undefined'.",
84 … "rule": "Function lacks ending return statement and return type does not include 'undefined'.",
93 … "suggest": "Function lacks ending return statement and return type does not include 'undefined'.",
94 … "rule": "Function lacks ending return statement and return type does not include 'undefined'.",
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_warnings_tests/boost_equal_statements_tests/
Dboost_equal_statements_2-expected.txt1 ETS Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2…
2 ETS Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2…
3 ETS Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2…
4 ETS Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2…
5 ETS Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2…
/arkcompiler/ets_frontend/es2panda/ir/module/
DexportNamedDeclaration.h20 #include <ir/statement.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/es2panda/ir/
Dstatement.cpp16 #include "statement.h"
19 void Statement::UpdateForMultipleTransformedStatements(const NodeUpdater &cb, in UpdateForMultipleTransformedStatements()
20 ArenaVector<Statement *> &originStatements) in UpdateForMultipleTransformedStatements()
25 auto statement = std::get<ir::AstNode *>(newStatements); in UpdateForMultipleTransformedStatements() local
26 if (statement == *iter) { in UpdateForMultipleTransformedStatements()
28 } else if (statement == nullptr) { in UpdateForMultipleTransformedStatements()
31 *iter = statement->AsStatement(); in UpdateForMultipleTransformedStatements()
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dcondition-with-boolean-reference.sts25 // Check assert statement
28 // Check if statement
33 // Check for statement
41 // Check while statement
48 // Check do-while statement
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
DblockStatementBuilder.h32 BlockStatementBuilder &SetStatements(ArenaVector<Statement *> statements) in SetStatements()
38 BlockStatementBuilder &AddStatement(Statement *statement) in AddStatement() argument
40 statementList_.emplace_back(statement); in AddStatement()
51 ArenaVector<Statement *> statementList_;
DblockExpressionBuilder.h32 BlockExpressionBuilder &SetStatements(ArenaVector<Statement *> statements) in SetStatements()
38 BlockExpressionBuilder &AddStatement(Statement *statement) in AddStatement() argument
40 statements_.emplace_back(statement); in AddStatement()
51 ArenaVector<ir::Statement *> statements_;
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsModuleBlock.h20 #include "ir/statement.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_;

12345678910>>...24