| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 22_grammar.rst | 119 '=' expression 180 identifier ':' 'readonly'? type '=' expression 213 expression: 270 | expression (',' expression)* (',' restArgument)? ','? 274 '...'? expression 286 expression (',' expression)* ','? 298 identifier ':' expression 310 expression ':' expression 314 '...' expression 318 '(' expression ')' [all …]
|
| D | 7_expressions.rst | 29 expression 31 launch expression 32 await expression 36 expression: 80 expression rules: 113 expression 130 | expression (',' expression)* (',' restArgument)? ','? 134 '...'? expression 138 the last argument can have the form of a spread expression (see 139 :ref:`Spread Expression`). [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/unit/plugin/ |
| D | e2p_test_plugin_is-expected.txt | 5 Found Expression: 12 Found Expression: 19 Found Expression: 32 Found Expression: 42 Found Expression: 49 Found Expression: 56 Found Expression: 61 Found Expression: 68 Found Expression: 80 "expression": false, [all …]
|
| /arkcompiler/ets_frontend/ets2panda/parser/ |
| D | parserImpl.h | 114 …ir::Expression *ParsePropertyValue(const ir::PropertyKind *propertyKind, const ParserStatus *metho… 121 ir::Expression *ParseKeywordExpression(); 122 ir::Expression *ParseBinaryExpression(ir::Expression *left, 124 void ValidateUpdateExpression(ir::Expression *returnExpression, bool isChainExpression); 125 ir::Expression *ParseMemberExpression(bool ignoreCallExpression = false, 127 ir::Expression *SetupChainExpr(ir::Expression *const top, lexer::SourcePosition startLoc); 129 void ValidateParenthesizedExpression(ir::Expression *lhsExpression); 130 bool ValidateGroupedExpression(ir::Expression *lhsExpression); 131 ir::Expression *ParseImportExpression(); 132 ir::Expression *ParseOptionalChain(ir::Expression *leftSideExpr); [all …]
|
| D | ASparser.h | 39 ir::Expression *ParsePatternElement(ExpressionParseFlags flags, bool allowDefault) override; 41 ir::Expression *ParsePropertyDefinition( 49 ir::ArrowFunctionExpression *ParsePotentialArrowExpression(ir::Expression **returnExpression, 51 …bool ParsePotentialGenericFunctionCall(ir::Expression *primaryExpr, ir::Expression **returnExpress… 53 …bool ParsePotentialNonNullExpression(ir::Expression **returnExpression, lexer::SourcePosition star… 55 ir::Expression *ParsePotentialAsExpression(ir::Expression *primaryExpression) override; 69 ir::Expression *propName, ir::ScriptFunction *func) override; 71 ir::Expression *propName, ir::ScriptFunction *func) override; 74 …std::tuple<bool, bool, bool> ParseComputedClassFieldOrIndexSignature(ir::Expression **propName) ov… 76 …const ArenaVector<ir::Expression *> ¶ms, ParserStatus newStatus, ParserStatus contextStatus) o… [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_warnings_tests/implicit_boxing_unboxing_tests/ |
| D | implicit_boxing_unboxing_1-expected.txt | 1 ETS Warning: Implicit Boxing to Int in Assignment Expression. [implicit_boxing_unboxing_1.sts:26:9] 2 ETS Warning: Implicit Unboxing to int in Binary Expression. [implicit_boxing_unboxing_1.sts:26:9] 3 ETS Warning: Implicit Boxing to Int in Assignment Expression. [implicit_boxing_unboxing_1.sts:27:9] 4 ETS Warning: Implicit Unboxing to int in Binary Expression. [implicit_boxing_unboxing_1.sts:27:9] 21 ETS Warning: Implicit Unboxing to int in Assignment Expression. [implicit_boxing_unboxing_1.sts:54:… 23 ETS Warning: Implicit Unboxing to int in Assignment Expression. [implicit_boxing_unboxing_1.sts:56:… 27 ETS Warning: Implicit Unboxing to int in Unary Expression. [implicit_boxing_unboxing_1.sts:66:22] 28 ETS Warning: Implicit Unboxing to double in Assignment Expression. [implicit_boxing_unboxing_1.sts:… 29 ETS Warning: Implicit Boxing to Double in Assignment Expression. [implicit_boxing_unboxing_1.sts:69… 30 ETS Warning: Implicit Boxing to Int in Update Expression. [implicit_boxing_unboxing_1.sts:71:5] [all …]
|
| /arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
| D | conditionalExpression.h | 19 #include "ir/expression.h" 27 class ConditionalExpression : public Expression { 35 explicit ConditionalExpression(Expression *test, Expression *consequent, Expression *alternate) in ConditionalExpression() 36 …: Expression(AstNodeType::CONDITIONAL_EXPRESSION), test_(test), consequent_(consequent), alternate… in ConditionalExpression() 40 [[nodiscard]] const Expression *Test() const noexcept in Test() 45 [[nodiscard]] Expression *Test() noexcept in Test() 50 void SetTest(Expression *expr) noexcept in SetTest() 56 [[nodiscard]] const Expression *Consequent() const noexcept in Consequent() 61 [[nodiscard]] Expression *Consequent() noexcept in Consequent() 66 void SetConsequent(Expression *expr) noexcept in SetConsequent() [all …]
|
| D | assignmentExpression.h | 19 #include "ir/expression.h" 25 class AssignmentExpression : public Expression { 36 explicit AssignmentExpression(Expression *const left, Expression *const right, in AssignmentExpression() 42 …explicit AssignmentExpression(AstNodeType const type, Expression *const left, Expression *const ri… in AssignmentExpression() 44 : Expression(type), left_(left), right_(right), operator_(assignmentOperator) in AssignmentExpression() 48 …ignmentExpression(Tag tag, AssignmentExpression const &other, Expression *left, Expression *right); 53 [[nodiscard]] const Expression *Left() const noexcept in Left() 58 [[nodiscard]] Expression *Left() noexcept in Left() 63 [[nodiscard]] Expression *Right() noexcept in Right() 68 [[nodiscard]] const Expression *Right() const noexcept in Right() [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/expressions/ |
| D | conditionalExpression.h | 19 #include <ir/expression.h> 32 class ConditionalExpression : public Expression { 34 explicit ConditionalExpression(Expression *test, Expression *consequent, Expression *alternate) in ConditionalExpression() 35 …: Expression(AstNodeType::CONDITIONAL_EXPRESSION), test_(test), consequent_(consequent), alternate… in ConditionalExpression() 39 const Expression *Test() const in Test() 44 Expression *Test() in Test() 49 const Expression *Consequent() const in Consequent() 54 const Expression *Alternate() const in Alternate() 59 void SetTest(Expression *test) in SetTest() 71 Expression *test_; [all …]
|
| D | assignmentExpression.h | 19 #include <ir/expression.h> 33 class AssignmentExpression : public Expression { 35 …explicit AssignmentExpression(Expression *left, Expression *right, lexer::TokenType assignmentOper… in AssignmentExpression() 40 explicit AssignmentExpression(AstNodeType type, Expression *left, Expression *right, in AssignmentExpression() 42 : Expression(type), left_(left), right_(right), operator_(assignmentOperator) in AssignmentExpression() 46 const Expression *Left() const in Left() 51 Expression *Left() in Left() 56 Expression *Right() in Right() 61 const Expression *Right() const in Right() 81 Expression *left_; [all …]
|
| D | chainExpression.h | 19 #include <ir/expression.h> 32 class ChainExpression : public Expression { 34 explicit ChainExpression(Expression *expression) in ChainExpression() argument 35 : Expression(AstNodeType::CHAIN_EXPRESSION), expression_(expression) in ChainExpression() 37 ASSERT(expression->IsMemberExpression() || expression->IsCallExpression()); in ChainExpression() 40 const Expression *GetExpression() const in GetExpression() 52 Expression *expression_;
|
| /arkcompiler/ets_frontend/es2panda/parser/ |
| D | parserImpl.h | 60 class Expression; variable 147 …explicit ArrowFunctionDescriptor(ArenaVector<ir::Expression *> &&p, binder::FunctionParamScope *ps, in ArrowFunctionDescriptor() 153 ArenaVector<ir::Expression *> params; 207 ir::Expression* SetupChainExpr(ir::Expression *const top, lexer::SourcePosition startLoc); in DEFINE_BITOPS() 241 void AddCommonjsParams(ArenaVector<ir::Expression *> ¶ms); in DEFINE_BITOPS() 242 void AddReflectApplyArgs(ArenaVector<ir::Expression *> &args, ir::FunctionExpression *wrapper); in DEFINE_BITOPS() 251 static bool IsPropertyKeysAreSame(const ir::Expression *exp1, const ir::Expression *exp2); in DEFINE_BITOPS() 255 ir::Expression *ParseTsTypeOperatorOrTypeReference(bool throwError); in DEFINE_BITOPS() 256 ir::Expression *ParseTsTypeOperator(); in DEFINE_BITOPS() 257 ir::Expression *ParseTsInferType(); in DEFINE_BITOPS() [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/ts/ |
| D | tsPrivateIdentifier.h | 19 #include <ir/expression.h> 32 class TSPrivateIdentifier : public Expression { 34 explicit TSPrivateIdentifier(Expression *key, Expression *value, Expression *typeAnnotation) in TSPrivateIdentifier() 35 …: Expression(AstNodeType::TS_PRIVATE_IDENTIFIER), key_(key), value_(value), typeAnnotation_(typeAn… in TSPrivateIdentifier() 39 const Expression *Key() const in Key() 44 Expression *Key() in Key() 49 const Expression *Value() const in Value() 54 const Expression *TypeAnnotation() const in TypeAnnotation() 66 Expression *key_; 67 Expression *value_; [all …]
|
| D | tsSatisfiesExpression.h | 20 #include <ir/expression.h> 33 class TSSatisfiesExpression : public Expression { 35 explicit TSSatisfiesExpression(Expression *expression, Expression *typeAnnotation) in TSSatisfiesExpression() argument 36 : Expression(AstNodeType::TS_SATISFIES_EXPRESSION), in TSSatisfiesExpression() 37 expression_(expression), in TSSatisfiesExpression() 42 const Expression *Expr() const in Expr() 47 Expression *Expr() in Expr() 52 const Expression *TypeAnnotation() const in TypeAnnotation() 64 Expression *expression_; 65 Expression *typeAnnotation_;
|
| D | tsTypeAssertion.h | 19 #include <ir/expression.h> 32 class TSTypeAssertion : public Expression { 34 explicit TSTypeAssertion(Expression *typeAnnotation, Expression *expression) in TSTypeAssertion() argument 35 …: Expression(AstNodeType::TS_TYPE_ASSERTION), typeAnnotation_(typeAnnotation), expression_(express… in TSTypeAssertion() 39 const Expression *TypeAnnotation() const in TypeAnnotation() 44 const Expression *GetExpression() const in GetExpression() 49 Expression *GetExpression() in GetExpression() 61 Expression *typeAnnotation_; 62 Expression *expression_;
|
| D | tsAsExpression.h | 20 #include <ir/expression.h> 33 class TSAsExpression : public Expression { 35 explicit TSAsExpression(Expression *expression, Expression *typeAnnotation, bool isConst) in TSAsExpression() argument 36 : Expression(AstNodeType::TS_AS_EXPRESSION), in TSAsExpression() 37 expression_(expression), in TSAsExpression() 43 const Expression *Expr() const in Expr() 48 Expression *Expr() in Expr() 53 const Expression *TypeAnnotation() const in TypeAnnotation() 70 Expression *expression_; 71 Expression *typeAnnotation_;
|
| D | tsConditionalType.h | 34 explicit TSConditionalType(Expression *checkType, Expression *extendsType, Expression *trueType, in TSConditionalType() 35 Expression *falseType) in TSConditionalType() 44 const Expression *CheckType() const in CheckType() 49 const Expression *ExtendsType() const in ExtendsType() 54 const Expression *TrueType() const in TrueType() 59 const Expression *FalseType() const in FalseType() 72 Expression *checkType_; 73 Expression *extendsType_; 74 Expression *trueType_; 75 Expression *falseType_;
|
| D | tsMethodSignature.h | 19 #include <ir/expression.h> 38 class TSMethodSignature : public Expression { 40 …explicit TSMethodSignature(binder::Scope *scope, Expression *key, TSTypeParameterDeclaration *type… in TSMethodSignature() 41 … ArenaVector<Expression *> &¶ms, Expression *returnTypeAnnotation, bool computed, in TSMethodSignature() 43 : Expression(AstNodeType::TS_METHOD_SIGNATURE), in TSMethodSignature() 61 const Expression *Key() const in Key() 66 Expression *Key() in Key() 76 const ArenaVector<Expression *> &Params() const in Params() 81 const Expression *ReturnTypeAnnotation() const in ReturnTypeAnnotation() 114 Expression *key_; [all …]
|
| D | tsIndexSignature.h | 19 #include <ir/expression.h> 32 class TSIndexSignature : public Expression { 36 …explicit TSIndexSignature(Expression *param, Expression *typeAnnotation, bool readonly, bool isSta… 37 : Expression(AstNodeType::TS_INDEX_SIGNATURE), in Expression() function 45 const Expression *Param() const in Param() 50 Expression *Param() in Param() 55 const Expression *TypeAnnotation() const in TypeAnnotation() 60 Expression *TypeAnnotation() in TypeAnnotation() 84 Expression *param_; 85 Expression *typeAnnotation_;
|
| /arkcompiler/ets_frontend/ets2panda/ir/ts/ |
| D | tsClassImplements.h | 19 #include "ir/expression.h" 24 class TSClassImplements : public Expression { 26 explicit TSClassImplements(Expression *expression, TSTypeParameterInstantiation *typeParameters) in TSClassImplements() argument 27 …: Expression(AstNodeType::TS_CLASS_IMPLEMENTS), expression_(expression), typeParameters_(typeParam… in TSClassImplements() 31 explicit TSClassImplements(Expression *expression) in TSClassImplements() argument 32 : Expression(AstNodeType::TS_CLASS_IMPLEMENTS), expression_(expression) in TSClassImplements() 36 Expression *Expr() in Expr() 41 const Expression *Expr() const in Expr() 66 Expression *expression_;
|
| D | tsConditionalType.h | 24 explicit TSConditionalType(Expression *checkType, Expression *extendsType, Expression *trueType, in TSConditionalType() 25 Expression *falseType) in TSConditionalType() 34 const Expression *CheckType() const in CheckType() 39 const Expression *ExtendsType() const in ExtendsType() 44 const Expression *TrueType() const in TrueType() 49 const Expression *FalseType() const in FalseType() 70 Expression *checkType_; 71 Expression *extendsType_; 72 Expression *trueType_; 73 Expression *falseType_;
|
| /arkcompiler/ets_frontend/ets2panda/ir/base/ |
| D | property.h | 19 #include "ir/expression.h" 25 class Property : public Expression { 36 explicit Property(Expression *const key, Expression *const value) in Property() 37 : Expression(AstNodeType::PROPERTY), kind_(PropertyKind::INIT), key_(key), value_(value) in Property() 41 …explicit Property(PropertyKind const kind, Expression *const key, Expression *const value, bool co… in Property() 43 : Expression(AstNodeType::PROPERTY), in Property() 53 explicit Property(Tag tag, Property const &other, Expression *key, Expression *value); 55 [[nodiscard]] Expression *Key() noexcept in Key() 60 [[nodiscard]] const Expression *Key() const noexcept in Key() 65 [[nodiscard]] const Expression *Value() const noexcept in Value() [all …]
|
| /arkcompiler/ets_frontend/ets2panda/ir/ |
| D | expression.h | 27 class Expression : public TypedAstNode { 29 Expression() = delete; 30 ~Expression() override = default; 32 Expression &operator=(const Expression &) = delete; 33 NO_MOVE_SEMANTIC(Expression); 102 explicit Expression(AstNodeType const type) : TypedAstNode(type) {} in Expression() function 103 …explicit Expression(AstNodeType const type, ModifierFlags const flags) : TypedAstNode(type, flags)… in Expression() function 105 Expression(Expression const &other) : TypedAstNode(static_cast<TypedAstNode const &>(other)) in Expression() function 114 class AnnotatedExpression : public Annotated<Expression> { 129 : Annotated<Expression>(type, typeAnnotation) in AnnotatedExpression() [all …]
|
| /arkcompiler/ets_frontend/es2panda/ir/base/ |
| D | classProperty.h | 20 #include <ir/expression.h> 33 class Expression; variable 37 …explicit ClassProperty(Expression *key, Expression *value, Expression *typeAnnotation, ModifierFla… in ClassProperty() 50 const Expression *Key() const in Key() 55 Expression *Key() in Key() 60 void SetKey(Expression *key) in SetKey() 65 const Expression *Value() const in Value() 70 Expression *Value() in Value() 75 const Expression *TypeAnnotation() const in TypeAnnotation() 80 Expression *TypeAnnotation() in TypeAnnotation() [all …]
|
| D | property.h | 19 #include <ir/expression.h> 35 class Property : public Expression { 37 explicit Property(Expression *key, Expression *value) in Property() 38 : Expression(AstNodeType::PROPERTY), in Property() 48 …explicit Property(PropertyKind kind, Expression *key, Expression *value, bool isMethod, bool isCom… in Property() 49 : Expression(AstNodeType::PROPERTY), in Property() 59 Expression *Key() in Key() 64 const Expression *Key() const in Key() 69 const Expression *Value() const in Value() 74 Expression *Value() in Value() [all …]
|