Home
last modified time | relevance | path

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

123456

/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.h33 class BinaryExpression : public Expression {
35 …explicit BinaryExpression(Expression *leftExpr, Expression *rightExpr, lexer::TokenType operatorTy… in BinaryExpression()
36 …: Expression(AstNodeType::BINARY_EXPRESSION), left_(leftExpr), right_(rightExpr), operator_(operat… in BinaryExpression()
40 const Expression *Left() const in Left()
45 Expression *Left() in Left()
50 const Expression *Right() const in Right()
55 Expression *Right() in Right()
70 void SetLeft(Expression *expr) in SetLeft()
90 Expression *left_;
91 Expression *right_;
DcallExpression.h35 class CallExpression : public Expression {
37 explicit CallExpression(Expression *callee, ArenaVector<Expression *> &&arguments, in CallExpression()
39 : Expression(AstNodeType::CALL_EXPRESSION), in CallExpression()
47 const Expression *Callee() const in Callee()
57 const ArenaVector<Expression *> &Arguments() const in Arguments()
62 ArenaVector<Expression *> &Arguments() in Arguments()
81 Expression *callee_;
82 ArenaVector<Expression *> arguments_;
DarrayExpression.h34 class ArrayExpression : public Expression {
36 …explicit ArrayExpression(AstNodeType nodeType, ArenaVector<Expression *> &&elements, bool trailing… in ArrayExpression()
37 …: Expression(nodeType), elements_(std::move(elements)), typeAnnotation_(nullptr), trailingComma_(t… in ArrayExpression()
41 const ArenaVector<Expression *> &Elements() const in Elements()
46 const Expression *TypeAnnotation() const in TypeAnnotation()
51 Expression *TypeAnnotation() in TypeAnnotation()
79 void SetTsTypeAnnotation(Expression *typeAnnotation) override in SetTsTypeAnnotation()
92 ArenaVector<Expression *> elements_;
93 Expression *typeAnnotation_;
DnewExpression.h34 class NewExpression : public Expression {
36 explicit NewExpression(Expression *callee, TSTypeParameterInstantiation *typeParams, in NewExpression()
37 ArenaVector<Expression *> &&arguments) in NewExpression()
38 : Expression(AstNodeType::NEW_EXPRESSION), callee_(callee), in NewExpression()
43 const Expression *Callee() const in Callee()
53 const ArenaVector<Expression *> &Arguments() const in Arguments()
65 Expression *callee_;
67 ArenaVector<Expression *> arguments_;
DmemberExpression.h34 class MemberExpression : public Expression {
38 explicit MemberExpression(Expression *object, Expression *property, MemberExpressionKind kind, in MemberExpression()
40 : Expression(AstNodeType::MEMBER_EXPRESSION), in MemberExpression()
49 const Expression *Object() const in Object()
54 Expression *Object() in Object()
59 const Expression *Property() const in Property()
89 Expression *object_;
90 Expression *property_;
DobjectExpression.h39 class ObjectExpression : public Expression {
41 …explicit ObjectExpression(AstNodeType nodeType, ArenaVector<Expression *> &&properties, bool trail… in ObjectExpression()
42 : Expression(nodeType), in ObjectExpression()
49 const ArenaVector<Expression *> &Properties() const in Properties()
54 const Expression *TypeAnnotation() const in TypeAnnotation()
59 Expression *TypeAnnotation() in TypeAnnotation()
78 void SetTsTypeAnnotation(Expression *typeAnnotation) override;
94 ArenaVector<Expression *> properties_;
95 Expression *typeAnnotation_;
/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_;
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()
59 const Expression *Key() const in Key()
64 Expression *Key() in Key()
74 const ArenaVector<Expression *> &Params() const in Params()
79 const Expression *ReturnTypeAnnotation() const in ReturnTypeAnnotation()
102 Expression *key_;
104 ArenaVector<Expression *> params_;
[all …]
DtsIndexSignature.h32 class TSIndexSignature : public Expression {
36 explicit TSIndexSignature(Expression *param, Expression *typeAnnotation, bool readonly) in TSIndexSignature()
37 : Expression(AstNodeType::TS_INDEX_SIGNATURE), in TSIndexSignature()
44 const Expression *Param() const in Param()
49 Expression *Param() in Param()
54 const Expression *TypeAnnotation() const in TypeAnnotation()
59 Expression *TypeAnnotation() in TypeAnnotation()
78 Expression *param_;
79 Expression *typeAnnotation_;
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_;
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_;
DtsEnumMember.h32 class Expression; variable
36 explicit TSEnumMember(Expression *key, Expression *init) in TSEnumMember()
41 const Expression *Key() const in Key()
46 const Expression *Init() const in Init()
51 Expression *Init() in Init()
63 Expression *key_;
64 Expression *init_;
DtsNamedTupleMember.h32 class TSNamedTupleMember : public Expression {
34 … explicit TSNamedTupleMember(Expression *label, Expression *elementType, bool optional, bool rest) in TSNamedTupleMember()
35 : Expression(AstNodeType::TS_NAMED_TUPLE_MEMBER), in TSNamedTupleMember()
43 const Expression *Label() const in Label()
48 const Expression *ElementType() const in ElementType()
70 Expression *label_;
71 Expression *elementType_;
DtsTypeParameter.h34 class TSTypeParameter : public Expression {
36 explicit TSTypeParameter(Identifier *name, Expression *constraint, Expression *defaultType) in TSTypeParameter()
37 …: Expression(AstNodeType::TS_TYPE_PARAMETER), name_(name), constraint_(constraint), defaultType_(d… in TSTypeParameter()
46 const Expression *Constraint() const in Constraint()
51 const Expression *DefaultType() const in DefaultType()
64 Expression *constraint_;
65 Expression *defaultType_;
DtsSignatureDeclaration.h38 class TSSignatureDeclaration : public Expression {
44 … ArenaVector<Expression *> &&params, Expression *returnTypeAnnotation) in TSSignatureDeclaration()
45 : Expression(AstNodeType::TS_SIGNATURE_DECLARATION), in TSSignatureDeclaration()
63 const ArenaVector<Expression *> &Params() const in Params()
68 const Expression *ReturnTypeAnnotation() const in ReturnTypeAnnotation()
88 ArenaVector<Expression *> params_;
89 Expression *returnTypeAnnotation_;
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.h60 class Expression; variable
146 …explicit ArrowFunctionDescriptor(ArenaVector<ir::Expression *> &&p, binder::FunctionParamScope *ps, in ArrowFunctionDescriptor()
152 ArenaVector<ir::Expression *> params;
235 void AddCommonjsParams(ArenaVector<ir::Expression *> &params);
236 void AddReflectApplyArgs(ArenaVector<ir::Expression *> &args, ir::FunctionExpression *wrapper);
245 static bool IsPropertyKeysAreSame(const ir::Expression *exp1, const ir::Expression *exp2);
249 ir::Expression *ParseTsTypeOperatorOrTypeReference(bool throwError);
250 ir::Expression *ParseTsIdentifierReference(TypeAnnotationParsingOptions options);
251 ir::Expression *ParseTsBasicType(TypeAnnotationParsingOptions options);
252 …ir::TSIntersectionType *ParseTsIntersectionType(ir::Expression *type, bool inUnion, bool restrictE…
[all …]
/arkcompiler/ets_frontend/es2panda/ir/base/
DclassProperty.h32 class Expression; variable
36 …explicit ClassProperty(Expression *key, Expression *value, Expression *typeAnnotation, ModifierFla… in ClassProperty()
49 const Expression *Key() const in Key()
54 Expression *Key() in Key()
59 void SetKey(Expression *key) in SetKey()
64 const Expression *Value() const in Value()
69 Expression *Value() in Value()
74 const Expression *TypeAnnotation() const in TypeAnnotation()
117 Expression *key_;
118 Expression *value_;
[all …]
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 …]
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/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_;
DforUpdateStatement.h36 class Expression; variable
40 …t ForUpdateStatement(binder::LoopScope *scope, AstNode *init, Expression *test, Expression *update, in ForUpdateStatement()
60 Expression *Test() in Test()
65 const Expression *Test() const in Test()
70 Expression *Update() in Update()
75 const Expression *Update() const in Update()
98 Expression *test_;
99 Expression *update_;

123456