/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | conditionalExpression.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_(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 *tes [all...] |
H A D | assignmentExpression.h | 33 class AssignmentExpression : public Expression { 35 explicit AssignmentExpression(Expression *left, Expression *right, lexer::TokenType assignmentOperator) 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 *Righ [all...] |
H A D | binaryExpression.h | 34 class BinaryExpression : public Expression { 36 explicit BinaryExpression(Expression *leftExpr, Expression *rightExpr, lexer::TokenType operatorType) in BinaryExpression() 37 : Expression(AstNodeType::BINARY_EXPRESSION), left_(leftExpr), right_(rightExpr), operator_(operatorType) in BinaryExpression() 44 const Expression *Left() const in Left() 49 Expression *Left() in Left() 54 const Expression *Right() const in Right() 59 Expression *Right() in Right() 74 void SetLeft(Expression *expr) in SetLeft() 95 Expression *left [all...] |
/arkcompiler/ets_frontend/ets2panda/parser/ |
H A D | parserImpl.h | 113 ir::Expression *ParsePropertyValue(const ir::PropertyKind *propertyKind, const ParserStatus *methodStatus, 119 ir::Expression *ParseKeywordExpression(); 120 ir::Expression *ParseBinaryExpression(ir::Expression *left, 122 void ValidateUpdateExpression(ir::Expression *returnExpression, bool isChainExpression); 123 ir::Expression *ParseMemberExpression(bool ignoreCallExpression = false, 125 ir::Expression *SetupChainExpr(ir::Expression *const top, lexer::SourcePosition startLoc); 128 void ValidateParenthesizedExpression(ir::Expression *lhsExpression); 129 void ValidateGroupedExpression(ir::Expression *lhsExpressio [all...] |
H A 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 **returnExpression, 53 bool ParsePotentialNonNullExpression(ir::Expression **returnExpression, lexer::SourcePosition startLoc) override; 55 ir::Expression *ParsePotentialAsExpression(ir::Expression *primaryExpression) override; 69 ir::Expression *propName, ir::ScriptFunction *func) override; 71 ir::Expression *propNam [all...] |
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
H A 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 [all...] |
H A D | tsPrivateIdentifier.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_(typeAnnotation) 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 [all...] |
H A D | tsMethodSignature.h | 38 class TSMethodSignature : public Expression { 40 explicit TSMethodSignature(binder::Scope *scope, Expression *key, TSTypeParameterDeclaration *typeParams, 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...] |
H A D | tsIndexSignature.h | 32 class TSIndexSignature : public Expression { 36 explicit TSIndexSignature(Expression *param, Expression *typeAnnotation, bool readonly, bool isStatic = false) in TSIndexSignature() 37 : Expression(AstNodeType::TS_INDEX_SIGNATURE), in TSIndexSignature() 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 [all...] |
H A D | tsPropertySignature.h | 32 class TSPropertySignature : public Expression { 34 explicit TSPropertySignature(Expression *key, Expression *typeAnnotation, bool computed, bool optional, in TSPropertySignature() 36 : Expression(AstNodeType::TS_PROPERTY_SIGNATURE), in TSPropertySignature() 45 const Expression *Key() const in Key() 50 Expression *Key() in Key() 55 const Expression *TypeAnnotation() const in TypeAnnotation() 82 Expression *key_; 83 Expression *typeAnnotation_;
|
H A D | tsSatisfiesExpression.h | 33 class TSSatisfiesExpression : public Expression { 35 explicit TSSatisfiesExpression(Expression *expression, Expression *typeAnnotation) in TSSatisfiesExpression() 36 : Expression(AstNodeType::TS_SATISFIES_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_;
|
H A D | tsTypeAssertion.h | 32 class TSTypeAssertion : public Expression { 34 explicit TSTypeAssertion(Expression *typeAnnotation, Expression *expression) in TSTypeAssertion() 35 : Expression(AstNodeType::TS_TYPE_ASSERTION), typeAnnotation_(typeAnnotation), expression_(expression) 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_;
|
H A D | tsAsExpression.h | 33 class TSAsExpression : public Expression { 35 explicit TSAsExpression(Expression *expression, Expression *typeAnnotation, bool isConst) in TSAsExpression() 36 : Expression(AstNodeType::TS_AS_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_;
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | parserImpl.h | 60 class Expression; 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); 241 void AddCommonjsParams(ArenaVector<ir::Expression *> ¶ms); 242 void AddReflectApplyArgs(ArenaVector<ir::Expression *> &args, ir::FunctionExpression *wrapper); 251 static bool IsPropertyKeysAreSame(const ir::Expression *exp1, const ir::Expression *exp2); 255 ir::Expression *ParseTsTypeOperatorOrTypeReferenc [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | assignmentExpression.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 right, in AssignmentExpression() 44 : Expression(type), left_(left), right_(right), operator_(assignmentOperator) in AssignmentExpression() 48 explicit AssignmentExpression(Tag tag, AssignmentExpression const &other, Expression *left, Expression *right); 53 [[nodiscard]] const Expression *Left() const noexcept 58 [[nodiscard]] Expression *Lef [all...] |
H A D | conditionalExpression.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_(alternate) in ConditionalExpression() 40 [[nodiscard]] const Expression *Test() const noexcept 45 [[nodiscard]] Expression *Test() noexcept 50 void SetTest(Expression *expr) noexcept 56 [[nodiscard]] const Expression *Consequent() const noexcept 61 [[nodiscard]] Expression *Consequen [all...] |
H A D | binaryExpression.h | 28 class BinaryExpression : public Expression { 36 explicit BinaryExpression(Expression *const left, Expression *const right, lexer::TokenType const operatorType) in BinaryExpression() 37 : Expression(AstNodeType::BINARY_EXPRESSION), left_(left), right_(right), operator_(operatorType) in BinaryExpression() 44 [[nodiscard]] const Expression *Left() const noexcept 49 [[nodiscard]] Expression *Left() noexcept 54 [[nodiscard]] const Expression *Right() const noexcept 59 [[nodiscard]] Expression *Right() noexcept 64 [[nodiscard]] const Expression *Result() const noexcept 69 [[nodiscard]] Expression *Resul [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/base/ |
H A D | property.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 const isMethod, in Property() 43 : Expression(AstNodeType::PROPERTY), in Property() 53 explicit Property(Tag tag, Property const &other, Expression *key, Expression *value); 55 [[nodiscard]] Expression *Ke [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | expression.h | 27 class Expression : public TypedAstNode { class 29 Expression() = delete; 30 ~Expression() override = default; 32 NO_COPY_OPERATOR(Expression); 33 NO_MOVE_SEMANTIC(Expression); 102 explicit Expression(AstNodeType const type) : TypedAstNode(type) {} in Expression() function in ark::es2panda::ir::Expression 103 explicit Expression(AstNodeType const type, ModifierFlags const flags) : TypedAstNode(type, flags) {} in Expression() function in ark::es2panda::ir::Expression 105 Expression(Expression const &other) : TypedAstNode(static_cast<TypedAstNode const &>(other)) in Expression() function in ark::es2panda::ir::Expression 114 class AnnotatedExpression : public Annotated<Expression> { [all...] |
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | property.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 isComputed) in Property() 49 : Expression(AstNodeType::PROPERTY), in Property() 59 Expression *Key() in Key() 64 const Expression *Key() const in Key() 69 const Expression *Valu [all...] |
H A D | spreadElement.h | 33 class SpreadElement : public Expression { 35 explicit SpreadElement(AstNodeType nodeType, Expression *argument) : Expression(nodeType), argument_(argument) {} in SpreadElement() 37 const Expression *Argument() const in Argument() 42 Expression *Argument() in Argument() 47 const Expression *TypeAnnotation() const in TypeAnnotation() 55 void SetTsTypeAnnotation(Expression *typeAnnotation) override; 63 Expression *argument_; 64 Expression *typeAnnotation_ {};
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A 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 [all...] |
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
H A D | variableDeclarator.h | 33 class Expression; 37 explicit VariableDeclarator(Expression *ident) in VariableDeclarator() 42 explicit VariableDeclarator(Expression *ident, Expression *init) in VariableDeclarator() 47 Expression *Init() in Init() 52 const Expression *Init() const in Init() 57 Expression *Id() in Id() 62 const Expression *Id() const in Id() 84 Expression *id_; 85 Expression *init [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/statements/ |
H A D | variableDeclarator.h | 25 class Expression; 36 explicit VariableDeclarator(VariableDeclaratorFlag flag, Expression *ident) in VariableDeclarator() 41 explicit VariableDeclarator(VariableDeclaratorFlag flag, Expression *ident, Expression *init) in VariableDeclarator() 49 Expression *Init() in Init() 54 const Expression *Init() const in Init() 59 void SetInit(Expression *init) in SetInit() 65 Expression *Id() in Id() 70 const Expression *Id() const in Id() 97 Expression *id [all...] |
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | tsConditionalTypeBuilder.h | 29 TSConditionalTypeBuilder &SetCheckType(Expression *checkType) in SetCheckType() 35 TSConditionalTypeBuilder &SetExtendsType(Expression *extendsType) in SetExtendsType() 41 TSConditionalTypeBuilder &SetTrueType(Expression *trueType) in SetTrueType() 47 TSConditionalTypeBuilder &SetFalseType(Expression *falseType) in SetFalseType() 60 Expression *checkType_ {}; 61 Expression *extendsType_ {}; 62 Expression *trueType_ {}; 63 Expression *falseType_ {};
|