Home
last modified time | relevance | path

Searched refs:Expression (Results 1 – 25 of 493) sorted by relevance

12345678910>>...20

/arkcompiler/ets_frontend/es2panda/ir/expressions/
DconditionalExpression.h32 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_;
72 Expression *consequent_;
[all …]
DassignmentExpression.h33 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_;
82 Expression *right_;
DbinaryExpression.h34 class BinaryExpression : public Expression {
36 …explicit BinaryExpression(Expression *leftExpr, Expression *rightExpr, lexer::TokenType operatorTy… in BinaryExpression()
37 …: Expression(AstNodeType::BINARY_EXPRESSION), left_(leftExpr), right_(rightExpr), operator_(operat… 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_;
96 Expression *right_;
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsPrivateIdentifier.h32 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_;
68 Expression *typeAnnotation_;
DtsConditionalType.h34 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_;
DtsIndexSignature.h32 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_;
DtsMethodSignature.h38 class TSMethodSignature : public Expression {
40 …explicit TSMethodSignature(binder::Scope *scope, Expression *key, TSTypeParameterDeclaration *type… in TSMethodSignature()
41 … ArenaVector<Expression *> &&params, 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_;
116 ArenaVector<Expression *> params_;
[all …]
DtsTypeAssertion.h32 class TSTypeAssertion : public Expression {
34 explicit TSTypeAssertion(Expression *typeAnnotation, Expression *expression) in TSTypeAssertion()
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_;
DtsSatisfiesExpression.h33 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_;
DtsAsExpression.h33 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_;
DtsPropertySignature.h32 class TSPropertySignature : public Expression {
34 …explicit TSPropertySignature(Expression *key, Expression *typeAnnotation, bool computed, bool opti… 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_;
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.h60 class Expression; variable
147 …explicit ArrowFunctionDescriptor(ArenaVector<ir::Expression *> &&p, binder::FunctionParamScope *ps, in ArrowFunctionDescriptor()
153 ArenaVector<ir::Expression *> params;
240 void AddCommonjsParams(ArenaVector<ir::Expression *> &params); in DEFINE_BITOPS()
241 void AddReflectApplyArgs(ArenaVector<ir::Expression *> &args, ir::FunctionExpression *wrapper); in DEFINE_BITOPS()
250 static bool IsPropertyKeysAreSame(const ir::Expression *exp1, const ir::Expression *exp2); in DEFINE_BITOPS()
254 ir::Expression *ParseTsTypeOperatorOrTypeReference(bool throwError); in DEFINE_BITOPS()
255 ir::Expression *ParseTsIdentifierReference(TypeAnnotationParsingOptions options); in DEFINE_BITOPS()
256 ir::Expression *ParseTsBasicType(TypeAnnotationParsingOptions options); in DEFINE_BITOPS()
257 …ir::TSIntersectionType *ParseTsIntersectionType(ir::Expression *type, bool inUnion, bool restrictE… in DEFINE_BITOPS()
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/expressions/
DassignmentExpression.h25 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()
73 [[nodiscard]] const Expression *Result() const noexcept in Result()
[all …]
DconditionalExpression.h27 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()
44 [[nodiscard]] const Expression *Test() const noexcept in Test()
49 [[nodiscard]] Expression *Test() noexcept in Test()
54 [[nodiscard]] const Expression *Consequent() const noexcept in Consequent()
59 [[nodiscard]] const Expression *Alternate() const noexcept in Alternate()
64 void SetTest(Expression *const test) noexcept in SetTest()
91 Expression *test_;
92 Expression *consequent_;
[all …]
DbinaryExpression.h27 class BinaryExpression : public Expression {
35 …explicit BinaryExpression(Expression *const left, Expression *const right, lexer::TokenType const … in BinaryExpression()
36 … : Expression(AstNodeType::BINARY_EXPRESSION), left_(left), right_(right), operator_(operatorType) in BinaryExpression()
43 [[nodiscard]] const Expression *Left() const noexcept in Left()
48 [[nodiscard]] Expression *Left() noexcept in Left()
53 [[nodiscard]] const Expression *Right() const noexcept in Right()
58 [[nodiscard]] Expression *Right() noexcept in Right()
63 [[nodiscard]] const Expression *Result() const noexcept in Result()
68 [[nodiscard]] Expression *Result() noexcept in Result()
106 void SetLeft(Expression *expr) noexcept in SetLeft()
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/ts/
DtsConditionalType.h24 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/
Dproperty.h25 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()
70 [[nodiscard]] Expression *Value() noexcept in Value()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/base/
Dproperty.h35 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()
119 Expression *key_;
[all …]
DclassProperty.h33 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()
138 Expression *key_;
139 Expression *value_;
[all …]
DspreadElement.h33 class SpreadElement : public Expression {
35 …explicit SpreadElement(AstNodeType nodeType, Expression *argument) : Expression(nodeType), argumen… 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/
Dexpression.h26 class Expression : public TypedAstNode {
28 Expression() = delete;
29 ~Expression() override = default;
31 NO_COPY_OPERATOR(Expression);
32 NO_MOVE_SEMANTIC(Expression);
101 explicit Expression(AstNodeType const type) : TypedAstNode(type) {} in Expression() function
102 …explicit Expression(AstNodeType const type, ModifierFlags const flags) : TypedAstNode(type, flags)… in Expression() function
104 Expression(Expression const &other) : TypedAstNode(static_cast<TypedAstNode const &>(other)) in Expression() function
113 class AnnotatedExpression : public Annotated<Expression> {
128 : Annotated<Expression>(type, typeAnnotation) in AnnotatedExpression()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/statements/
DvariableDeclarator.h33 class Expression; variable
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_;
/arkcompiler/ets_frontend/ets2panda/parser/
DASparser.h39 ir::Expression *ParsePatternElement(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS,
42 ir::Expression *ParsePropertyDefinition(
46 ir::ArrowFunctionExpression *ParsePotentialArrowExpression(ir::Expression **returnExpression,
48 …bool ParsePotentialGenericFunctionCall(ir::Expression *primaryExpr, ir::Expression **returnExpress…
50 …bool ParsePotentialNonNullExpression(ir::Expression **returnExpression, lexer::SourcePosition star…
52 ir::Expression *ParsePotentialAsExpression(ir::Expression *primaryExpression) override;
66 ir::Expression *propName, ir::ScriptFunction *func) override;
68 ir::Expression *propName, ir::ScriptFunction *func) override;
71 …std::tuple<bool, bool, bool> ParseComputedClassFieldOrIndexSignature(ir::Expression **propName) ov…
73 …const ArenaVector<ir::Expression *> &params, ParserStatus newStatus, ParserStatus contextStatus) o…
[all …]
DTSparser.h46 …ir::TSIntersectionType *ParseIntersectionType(ir::Expression *type, bool inUnion, bool restrictExt…
56 ir::TypeNode *ParseConditionalType(ir::Expression *checkType, bool restrictExtends);
69 …void CreateTSVariableForProperty(ir::AstNode *node, const ir::Expression *key, varbinder::Variable…
70 …void ValidateFunctionParam(const ArenaVector<ir::Expression *> &params, const ir::Expression *para…
72 …ir::TSParameterProperty *CreateParameterProperty(ir::Expression *parameter, ir::ModifierFlags modi…
73 void ValidateFunctionOverloadParams(const ArenaVector<ir::Expression *> &params);
74 ir::Expression *ParseModuleReference();
82 ir::Expression *ParsePatternElement(ExpressionParseFlags flags = ExpressionParseFlags::NO_OPTS,
90 ir::ArrowFunctionExpression *ParsePotentialArrowExpression(ir::Expression **returnExpression,
92 …bool ParsePotentialGenericFunctionCall(ir::Expression *primaryExpr, ir::Expression **returnExpress…
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/statements/
DvariableDeclarator.h25 class Expression; variable
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 Expression *Id() in Id()
64 const Expression *Id() const in Id()
89 Expression *id_;
90 Expression *init_ {};

12345678910>>...20