Home
last modified time | relevance | path

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

12345678910>>...29

/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-labelled-statement-expected.txt14 "program": "test-labelled-statement.js"
19 "program": "test-labelled-statement.js"
33 "program": "test-labelled-statement.js"
38 "program": "test-labelled-statement.js"
46 "program": "test-labelled-statement.js"
51 "program": "test-labelled-statement.js"
59 "program": "test-labelled-statement.js"
64 "program": "test-labelled-statement.js"
78 "program": "test-labelled-statement.js"
83 "program": "test-labelled-statement.js"
[all …]
Dtest-throw-statement-expected.txt13 "program": "test-throw-statement.js"
18 "program": "test-throw-statement.js"
26 "program": "test-throw-statement.js"
31 "program": "test-throw-statement.js"
44 "program": "test-throw-statement.js"
49 "program": "test-throw-statement.js"
57 "program": "test-throw-statement.js"
62 "program": "test-throw-statement.js"
75 "program": "test-throw-statement.js"
80 "program": "test-throw-statement.js"
[all …]
Dtest-try-statement-expected.txt13 "program": "test-try-statement.js"
18 "program": "test-try-statement.js"
32 "program": "test-try-statement.js"
37 "program": "test-try-statement.js"
49 "program": "test-try-statement.js"
54 "program": "test-try-statement.js"
62 "program": "test-try-statement.js"
67 "program": "test-try-statement.js"
79 "program": "test-try-statement.js"
84 "program": "test-try-statement.js"
[all …]
Dtest-debugger-statement-expected.txt10 "program": "test-debugger-statement.js"
15 "program": "test-debugger-statement.js"
25 "program": "test-debugger-statement.js"
30 "program": "test-debugger-statement.js"
43 "program": "test-debugger-statement.js"
48 "program": "test-debugger-statement.js"
57 "program": "test-debugger-statement.js"
62 "program": "test-debugger-statement.js"
75 "program": "test-debugger-statement.js"
80 "program": "test-debugger-statement.js"
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D8_statements.rst27 statement:
43 .. _Normal and Abrupt Statement Execution:
45 Normal and Abrupt Statement Execution
51 The actions that every statement performs in a normal mode of execution are
52 specific for the particular kind of statement. Normal modes of
53 evaluation for each kind of statement are described in the following
56 A statement execution is considered to *complete normally* if the desired
57 action is performed without an error being thrown. On the contrary, a statement
61 statement
63 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_;
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/
Dillegal_continue_statement.ets44 /* @@? 18:5 Error SyntaxError: Illegal continue statement. */
45 … 18:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
46 /* @@? 25:5 Error SyntaxError: Illegal continue statement. */
47 … 25:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
49 /* @@? 32:5 Error SyntaxError: Illegal break statement. */
50 … 32:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
51 /* @@? 39:5 Error SyntaxError: Illegal break statement. */
52 … 39:5 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
Dunclosed_loop.ets22 …nue;/* @@ label1 */continue;/* @@ label2 */continue;}; // misplaced continue statement, out of loop
27 …label Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
28 …abel1 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
29 …abel2 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
30 …abel3 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
Dlabeled.ets26 /* @@@ label Error SyntaxError: Label must be followed by a loop statement. */
27 /* @@@ label1 Error SyntaxError: Label must be followed by a loop statement. */
28 /* @@@ label2 Error SyntaxError: Label must be followed by a loop statement. */
29 /* @@@ label3 Error SyntaxError: Label must be followed by a loop statement. */
30 /* @@@ label4 Error SyntaxError: Label must be followed by a loop statement. */
31 /* @@@ label5 Error SyntaxError: Label must be followed by a loop statement. */
32 /* @@@ label6 Error SyntaxError: Label must be followed by a loop statement. */
Dillegal_break_statement.ets30 /* @@@ label1 Error SyntaxError: Illegal break statement. */
31 /* @@@ label2 Error SyntaxError: Illegal break statement. */
32 …18:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
33 …25:20 Error TypeError: Control flow redirection statement can not be used out of loop or switch 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"
119 class TypedStatement : public Typed<Statement> {
129 Typed<Statement>::CopyTo(other); in CopyTo()
133 explicit TypedStatement(AstNodeType type) : Typed<Statement>(type) {}; in TypedStatement()
134 … explicit TypedStatement(AstNodeType type, ModifierFlags flags) : Typed<Statement>(type, flags) {}; in TypedStatement()
136 …TypedStatement(TypedStatement const &other) : Typed<Statement>(static_cast<Typed<Statement> const … in TypedStatement()
141 class AnnotatedStatement : public Annotated<Statement> {
151 Annotated<Statement>::CopyTo(other); in CopyTo()
155 …explicit AnnotatedStatement(AstNodeType type, TypeNode *typeAnnotation) : Annotated<Statement>(typ… in AnnotatedStatement()
159 explicit AnnotatedStatement(AstNodeType type) : Annotated<Statement>(type) {} in AnnotatedStatement()
[all …]
/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/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()
72 void SetAlternate(Statement *alternate) noexcept in SetAlternate()
99 Statement *consequent_;
[all …]
DblockStatement.h19 #include "ir/statement.h"
27 class BlockStatement : public Statement {
29 explicit BlockStatement(ArenaAllocator *allocator, ArenaVector<Statement *> &&statementList) in BlockStatement()
30 : Statement(AstNodeType::BLOCK_STATEMENT), in BlockStatement()
59 const ArenaVector<Statement *> &Statements() const in Statements()
64 ArenaVector<Statement *> &Statements() in Statements()
69 void SetStatements(ArenaVector<Statement *> &&statementList) in SetStatements()
73 for (auto *statement : statements_) { in SetStatements()
74 statement->SetParent(this); in SetStatements()
78 void AddStatement(Statement *stmt) in AddStatement()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/parser/ets/FixedArray/
Dunclosed_loop.ets22 …nue;/* @@ label1 */continue;/* @@ label2 */continue;}; // misplaced continue statement, out of loop
27 …label Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
28 …abel1 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
29 …abel2 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
30 …abel3 Error TypeError: Control flow redirection statement can not be used out of loop or switch st…
/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.ets.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 Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2.ets…
2 Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2.ets…
3 Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2.ets…
4 Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2.ets…
5 Warning: Boost Equality Statement. Change sides of binary expression. [boost_equal_statements_2.ets…
/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/compiler/lowering/ets/topLevelStmts/
DglobalClassHandler.h33 ArenaVector<ir::Statement *> statements;
46 … const ArenaVector<ArenaVector<ir::Statement *>> &initializerBlocks);
54 void SetupGlobalMethods(parser::Program *program, ArenaVector<ir::Statement *> &&statements);
65 void SetupGlobalMethods(parser::Program *program, ArenaVector<ir::Statement *> &&initStatements,
67 …void SetupInitializerBlock(parser::Program *program, ArenaVector<ArenaVector<ir::Statement *>> &&i…
74 …ir::MethodDefinition *CreateGlobalMethod(std::string_view name, ArenaVector<ir::Statement *> &&sta…
78 ArenaVector<ir::Statement *> &&initializerBlocks);
80 ArenaVector<ArenaVector<ir::Statement *>> FormInitStaticBlockMethodStatements(
85 ArenaVector<ir::Statement *> FormInitMethodStatements(parser::Program *program,
89 void FormDependentInitTriggers(ArenaVector<ir::Statement *> &statements,
[all …]
/arkcompiler/ets_frontend/ets2panda/parser/
DparserImpl.h166 void CheckLabelledFunction(const ir::Statement *node);
167 bool ParseDirective(ArenaVector<ir::Statement *> *statements);
168 void ParseDirectivePrologue(ArenaVector<ir::Statement *> *statements);
178 std::tuple<ir::Expression *, ir::Statement *> ParseForLoopInitializer();
184 ir::Statement *CreateForStatement(struct ForStatementNodes &&nodes, ForStatementKind forKind,
213 ir::Statement *AllocEmptyStatement();
214 ir::Statement *AllocBrokenStatement(const lexer::SourcePosition &pos);
215 ir::Statement *AllocBrokenStatement(const lexer::SourceRange &range);
216 bool IsBrokenStatement(ir::Statement *st);
296 …ArenaVector<ir::Statement *> ParseStatementList(StatementParsingFlags flags = StatementParsingFlag…
[all …]

12345678910>>...29