Home
last modified time | relevance | path

Searched refs:isComputed (Results 1 - 25 of 27) sorted by relevance

12

/arkcompiler/ets_frontend/ets2panda/util/ast-builders/
H A DpropertyBuilder.h53 PropertyBuilder &SetIsComputed(bool isComputed) in SetIsComputed() argument
55 isComputed_ = isComputed; in SetIsComputed()
/arkcompiler/ets_frontend/ets2panda/ir/base/
H A DclassProperty.h38 ModifierFlags const modifiers, ArenaAllocator *const allocator, bool const isComputed) in ClassProperty()
39 : ClassElement(AstNodeType::CLASS_PROPERTY, key, value, modifiers, allocator, isComputed), in ClassProperty()
37 ClassProperty(Expression *const key, Expression *const value, TypeNode *const typeAnnotation, ModifierFlags const modifiers, ArenaAllocator *const allocator, bool const isComputed) ClassProperty() argument
H A DclassElement.h34 ModifierFlags const modifiers, ArenaAllocator *const allocator, bool const isComputed) in ClassElement()
39 isComputed_(isComputed) in ClassElement()
33 ClassElement(AstNodeType const elementType, Expression *const key, Expression *const value, ModifierFlags const modifiers, ArenaAllocator *const allocator, bool const isComputed) ClassElement() argument
H A DmethodDefinition.h43 ModifierFlags const modifiers, ArenaAllocator *const allocator, bool const isComputed) in MethodDefinition()
44 : ClassElement(AstNodeType::METHOD_DEFINITION, key, value, modifiers, allocator, isComputed), in MethodDefinition()
42 MethodDefinition(MethodDefinitionKind const kind, Expression *const key, Expression *const value, ModifierFlags const modifiers, ArenaAllocator *const allocator, bool const isComputed) MethodDefinition() argument
H A Dproperty.h42 bool const isComputed) in Property()
49 isComputed_(isComputed) in Property()
41 Property(PropertyKind const kind, Expression *const key, Expression *const value, bool const isMethod, bool const isComputed) Property() argument
/arkcompiler/ets_frontend/es2panda/ir/base/
H A Dproperty.h48 explicit Property(PropertyKind kind, Expression *key, Expression *value, bool isMethod, bool isComputed) in Property() argument
55 isComputed_(isComputed) in Property()
H A DclassProperty.h38 ArenaVector<Decorator *> &&decorators, bool isComputed, bool definite) in ClassProperty()
45 isComputed_(isComputed), in ClassProperty()
37 ClassProperty(Expression *key, Expression *value, Expression *typeAnnotation, ModifierFlags modifiers, ArenaVector<Decorator *> &&decorators, bool isComputed, bool definite) ClassProperty() argument
H A DmethodDefinition.h47 bool isComputed) in MethodDefinition()
57 isComputed_(isComputed) in MethodDefinition()
44 MethodDefinition(MethodDefinitionKind kind, Expression *key, FunctionExpression *value, ModifierFlags modifiers, ArenaAllocator *allocator, ArenaVector<Decorator *> &&decorators, ArenaVector<Annotation *> &&annotations, ArenaVector<ParamDecorators> &&paramDecorators, bool isComputed) MethodDefinition() argument
/arkcompiler/ets_frontend/ets2panda/compiler/core/
H A Dpandagen.h251 static Operand ToNamedPropertyKey(const ir::Expression *prop, bool isComputed);
252 void LoadPropertyKeyAcc(const ir::Expression *prop, bool isComputed);
253 Operand ToPropertyKey(const ir::Expression *prop, bool isComputed, bool isSuperExpression = false);
254 Operand ToOwnPropertyKey(const ir::Expression *prop, bool isComputed);
255 VReg LoadPropertyKey(const ir::Expression *prop, bool isComputed);
H A Dpandagen.cpp1691 Operand PandaGen::ToNamedPropertyKey(const ir::Expression *prop, bool isComputed) in ToNamedPropertyKey() argument
1695 if (!isComputed) { in ToNamedPropertyKey()
1730 Operand PandaGen::ToPropertyKey(const ir::Expression *prop, bool isComputed, bool isSuperExpression) in ToPropertyKey() argument
1732 Operand op = ToNamedPropertyKey(prop, isComputed); in ToPropertyKey()
1748 Operand PandaGen::ToOwnPropertyKey(const ir::Expression *prop, bool isComputed) in ToOwnPropertyKey() argument
1750 Operand op = ToNamedPropertyKey(prop, isComputed); in ToOwnPropertyKey()
1767 void PandaGen::LoadPropertyKeyAcc(const ir::Expression *prop, bool isComputed) in LoadPropertyKeyAcc() argument
1769 Operand op = ToNamedPropertyKey(prop, isComputed); in LoadPropertyKeyAcc()
1779 VReg PandaGen::LoadPropertyKey(const ir::Expression *prop, bool isComputed) in LoadPropertyKey() argument
1781 LoadPropertyKeyAcc(prop, isComputed); in LoadPropertyKey()
[all...]
/arkcompiler/ets_frontend/ets2panda/parser/
H A DforwardDeclForParserImpl.h116 bool isComputed {};
H A DTSparser.cpp1578 bool isComputed = false; in ParseInterfacePropertyKey() local
1607 isComputed = true; in ParseInterfacePropertyKey()
1620 return {key, isComputed}; in ParseInterfacePropertyKey()
1657 auto [key, isComputed] = ParseInterfacePropertyKey(); in ParsePropertyOrMethodSignature()
1694 key, ir::FunctionSignature(typeParamDecl, std::move(params), returnType), isComputed, isOptional); in ParsePropertyOrMethodSignature()
1709 AllocNode<ir::TSPropertySignature>(key, typeAnnotation, isComputed, isOptional, isReadonly); in ParsePropertyOrMethodSignature()
1925 desc->isComputed); in ParseClassMethod()
H A DASparser.cpp1024 auto [key, isComputed] = ParseInterfacePropertyKey(); in ParsePropertyOrMethodSignature()
1052 auto *methodSignature = AllocNode<ir::TSMethodSignature>(key, std::move(signature), isComputed, false); in ParsePropertyOrMethodSignature()
1066 auto *propertySignature = AllocNode<ir::TSPropertySignature>(key, typeAnnotation, isComputed, false, isReadonly); in ParsePropertyOrMethodSignature()
H A DparserImpl.cpp388 std::tie(desc->isComputed, desc->invalidComputedProperty, desc->isIndexSignature) = in ParseClassKey()
463 desc->isComputed); in ParseClassMethod()
500 AllocNode<ir::ClassProperty>(propName, value, typeAnnotation, desc->modifiers, Allocator(), desc->isComputed); in ParseClassProperty()
H A DexpressionParser.cpp2136 bool isComputed = lexer_->GetToken().Type() == lexer::TokenType::PUNCTUATOR_LEFT_SQUARE_BRACKET; in ParsePropertyDefinition() local
2156 AllocNode<ir::Property>(propertyKind, key, value, methodStatus != ParserStatus::NO_OPTS, isComputed); in ParsePropertyDefinition()
H A DETSparserClasses.cpp505 funcExpr, desc->modifiers, Allocator(), desc->isComputed); in ParseClassMethod()
/arkcompiler/ets_frontend/es2panda/compiler/core/
H A Dpandagen.h465 Operand ToNamedPropertyKey(const ir::Expression *prop, bool isComputed);
466 Operand ToPropertyKey(const ir::Expression *prop, bool isComputed);
467 VReg LoadPropertyKey(const ir::Expression *prop, bool isComputed);
H A Dpandagen.cpp2071 Operand PandaGen::ToNamedPropertyKey(const ir::Expression *prop, bool isComputed) in ToNamedPropertyKey() argument
2075 if (isComputed) { in ToNamedPropertyKey()
2111 Operand PandaGen::ToPropertyKey(const ir::Expression *prop, bool isComputed) in ToPropertyKey() argument
2113 Operand op = ToNamedPropertyKey(prop, isComputed); in ToPropertyKey()
2139 VReg PandaGen::LoadPropertyKey(const ir::Expression *prop, bool isComputed) in LoadPropertyKey() argument
2141 Operand op = ToNamedPropertyKey(prop, isComputed); in LoadPropertyKey()
/arkcompiler/ets_frontend/ets2panda/util/
H A Dhelpers.cpp346 bool Helpers::IsConstantPropertyKey(const ir::Expression *expr, bool isComputed) in IsConstantPropertyKey() argument
350 return !isComputed; in IsConstantPropertyKey()
H A Dhelpers.h153 static bool IsConstantPropertyKey(const ir::Expression *expr, bool isComputed);
/arkcompiler/ets_frontend/es2panda/parser/transformer/
H A Dtransformer.h59 bool isComputed; member
193 ir::Expression *GetClassMemberName(ir::Expression *key, bool isComputed,
H A Dtransformer.cpp930 if (!methodInfo.isComputed) { in AddMethodToClass()
949 methodInfo.isComputed); in AddMethodToClass()
951 if (methodInfo.isComputed) { in AddMethodToClass()
1567 ir::Expression *Transformer::GetClassMemberName(ir::Expression *key, bool isComputed, in GetClassMemberName() argument
1570 if (isComputed) { in GetClassMemberName()
/arkcompiler/ets_frontend/es2panda/util/
H A Dhelpers.h122 static bool IsConstantPropertyKey(const ir::Expression *expr, bool isComputed);
H A Dhelpers.cpp391 bool Helpers::IsConstantPropertyKey(const ir::Expression *expr, bool isComputed) in IsConstantPropertyKey() argument
395 return !isComputed; in IsConstantPropertyKey()
/arkcompiler/ets_frontend/es2panda/parser/
H A DparserImpl.cpp2441 desc->isComputed = true; in ParseClassKey()
2647 std::move(paramDecorators), desc->isComputed); in ParseClassMethod()
2654 desc->isComputed); in ParseClassMethod()
2691 if (!desc->isComputed) { in ParseClassProperty()
2724 desc->modifiers, std::move(decorators), desc->isComputed, in ParseClassProperty()

Completed in 43 milliseconds

12