/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | propertyBuilder.h | 53 PropertyBuilder &SetIsComputed(bool isComputed) in SetIsComputed() argument 55 isComputed_ = isComputed; in SetIsComputed()
|
/arkcompiler/ets_frontend/ets2panda/ir/base/ |
H A D | classProperty.h | 38 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 D | classElement.h | 34 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 D | methodDefinition.h | 43 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 D | property.h | 42 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 D | property.h | 48 explicit Property(PropertyKind kind, Expression *key, Expression *value, bool isMethod, bool isComputed) in Property() argument 55 isComputed_(isComputed) in Property()
|
H A D | classProperty.h | 38 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 D | methodDefinition.h | 47 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> &¶mDecorators, bool isComputed) MethodDefinition() argument
|
/arkcompiler/ets_frontend/ets2panda/compiler/core/ |
H A D | pandagen.h | 251 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 D | pandagen.cpp | 1691 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 D | forwardDeclForParserImpl.h | 116 bool isComputed {};
|
H A D | TSparser.cpp | 1578 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 D | ASparser.cpp | 1024 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 D | parserImpl.cpp | 388 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 D | expressionParser.cpp | 2136 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 D | ETSparserClasses.cpp | 505 funcExpr, desc->modifiers, Allocator(), desc->isComputed); in ParseClassMethod()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
H A D | pandagen.h | 465 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 D | pandagen.cpp | 2071 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 D | helpers.cpp | 346 bool Helpers::IsConstantPropertyKey(const ir::Expression *expr, bool isComputed) in IsConstantPropertyKey() argument 350 return !isComputed; in IsConstantPropertyKey()
|
H A D | helpers.h | 153 static bool IsConstantPropertyKey(const ir::Expression *expr, bool isComputed);
|
/arkcompiler/ets_frontend/es2panda/parser/transformer/ |
H A D | transformer.h | 59 bool isComputed; member 193 ir::Expression *GetClassMemberName(ir::Expression *key, bool isComputed,
|
H A D | transformer.cpp | 930 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 D | helpers.h | 122 static bool IsConstantPropertyKey(const ir::Expression *expr, bool isComputed);
|
H A D | helpers.cpp | 391 bool Helpers::IsConstantPropertyKey(const ir::Expression *expr, bool isComputed) in IsConstantPropertyKey() argument 395 return !isComputed; in IsConstantPropertyKey()
|
/arkcompiler/ets_frontend/es2panda/parser/ |
H A D | parserImpl.cpp | 2441 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()
|