/arkcompiler/ets_frontend/ets2panda/ir/base/ |
H A D | property.cpp | 26 Property::Property([[maybe_unused]] Tag const tag, Property const &other, Expression *const key, in Property() function in ark::es2panda::ir::Property 28 : Property(other) in Property() 34 Property *Property::Clone(ArenaAllocator *const allocator, AstNode *const parent) in Clone() 39 if (auto *const clone = allocator->New<Property>(Tag {}, *this, key, value); clone != nullptr) { in Clone() 55 bool Property::ConvertibleToPatternProperty() in ConvertibleToPatternProperty() 91 ValidationInfo Property::ValidateExpression() in ValidateExpression() 124 void Property [all...] |
H A D | property.h | 25 class Property : public Expression { class 30 Property() = delete; 31 ~Property() override = default; 33 NO_COPY_OPERATOR(Property); 34 NO_MOVE_SEMANTIC(Property); 36 explicit Property(Expression *const key, Expression *const value) in Property() function in ark::es2panda::ir::Property 41 explicit Property(PropertyKind const kind, Expression *const key, Expression *const value, bool const isMethod, in Property() function in ark::es2panda::ir::Property 53 explicit Property(Tag tag, Property const &other, Expression *key, Expression *value); 105 [[nodiscard]] Property *Clon 125 Property(Property const &other) : Expression(static_cast<Expression const &>(other)) Property() function in ark::es2panda::ir::Property [all...] |
/arkcompiler/ets_frontend/es2panda/ir/ |
H A D | astDump.h | 60 class Property { class in panda::es2panda::ir::AstDumper 73 std::variant<const char *, lexer::TokenType, std::initializer_list<Property>, util::StringView, bool, 76 Property(const char *key, const char *string) : key_(key), value_(string) {} in Property() function in panda::es2panda::ir::AstDumper::Property 77 Property(const char *key, util::StringView str) : key_(key), value_(str) {} in Property() function in panda::es2panda::ir::AstDumper::Property 78 Property(const char *key, bool boolean) : key_(key), value_(boolean) {} in Property() function in panda::es2panda::ir::AstDumper::Property 79 Property(const char *key, double number) : key_(key), value_(number) {} in Property() function in panda::es2panda::ir::AstDumper::Property 80 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {} in Property() function in panda::es2panda::ir::AstDumper::Property 81 Property(const char *key, std::initializer_list<Property> props) : key_(key), value_(props) {} in Property() function in panda::es2panda::ir::AstDumper::Property 82 Property(cons in Property() function in panda::es2panda::ir::AstDumper::Property 84 Property(const char *key, Constant constant) : key_(key), value_(constant) {} Property() function in panda::es2panda::ir::AstDumper::Property 85 Property(const char *key, Nullable nullable) : key_(key) Property() function in panda::es2panda::ir::AstDumper::Property 94 Property(const char *key, Optional optional) : key_(key) Property() function in panda::es2panda::ir::AstDumper::Property 116 Property(const char *key, const ArenaVector<T> &array) : key_(key) Property() function in panda::es2panda::ir::AstDumper::Property [all...] |
H A D | astDump.cpp | 42 void AstDumper::Add(std::initializer_list<AstDumper::Property> props) in Add() 44 AddList<std::initializer_list<AstDumper::Property>>(props); in Add() 47 void AstDumper::Add(const AstDumper::Property &prop) in Add() 86 void AstDumper::Serialize(const AstDumper::Property &prop) in Serialize() 109 } else if (std::holds_alternative<std::initializer_list<Property>>(value)) { in Serialize() 110 SerializePropList(std::get<std::initializer_list<Property>>(value)); in Serialize() 111 } else if (std::holds_alternative<Property::Constant>(value)) { in Serialize() 112 SerializeConstant(std::get<Property::Constant>(value)); in Serialize() 161 void AstDumper::SerializeConstant(Property::Constant constant) in SerializeConstant() 164 case Property in SerializeConstant() [all...] |
/arkcompiler/ets_frontend/ets2panda/ir/ |
H A D | astDump.h | 73 class Property { class in ark::es2panda::ir::AstDumper 86 using Val = std::variant<const char *, lexer::TokenType, std::initializer_list<Property>, util::StringView, 90 Property(const char *key, const char *string) : key_(key), value_(string) {} in Property() function in ark::es2panda::ir::AstDumper::Property 91 Property(const char *key, util::StringView str) : key_(key), value_(str) {} in Property() function in ark::es2panda::ir::AstDumper::Property 92 Property(const char *key, bool boolean) : key_(key), value_(boolean) {} in Property() function in ark::es2panda::ir::AstDumper::Property 93 Property(const char *key, char16_t c16) : key_(key), value_(c16) {} in Property() function in ark::es2panda::ir::AstDumper::Property 94 Property(const char *key, lexer::Number number) : key_(key), value_(number) {} in Property() function in ark::es2panda::ir::AstDumper::Property 95 Property(const char *key, lexer::TokenType token) : key_(key), value_(token) {} in Property() function in ark::es2panda::ir::AstDumper::Property 96 Property(const char *key, std::initializer_list<Property> prop in Property() function in ark::es2panda::ir::AstDumper::Property 97 Property(const char *key, const ir::AstNode *node) : key_(key), value_(const_cast<ir::AstNode *>(node)) {} Property() function in ark::es2panda::ir::AstDumper::Property 99 Property(const char *key, Constant constant) : key_(key), value_(constant) {} Property() function in ark::es2panda::ir::AstDumper::Property 100 Property(const char *key, Nullish nullish) : key_(key) Property() function in ark::es2panda::ir::AstDumper::Property 109 Property(const char *key, const Optional &optional) : key_(key) Property() function in ark::es2panda::ir::AstDumper::Property 140 Property(const char *key, const ArenaVector<T> &array) : key_(key) Property() function in ark::es2panda::ir::AstDumper::Property 158 Property(const char *key, const ArenaVector<T> &array, const std::function<bool(AstNode *)> &filter) : key_(key) Property() function in ark::es2panda::ir::AstDumper::Property [all...] |
H A D | astDump.cpp | 31 void AstDumper::Add(std::initializer_list<AstDumper::Property> props) in Add() 33 AddList<std::initializer_list<AstDumper::Property>>(props); in Add() 36 void AstDumper::Add(const AstDumper::Property &prop) in Add() 79 void AstDumper::Serialize(const AstDumper::Property &prop) in Serialize() 100 } else if (std::holds_alternative<std::initializer_list<Property>>(value)) { in Serialize() 101 SerializePropList(std::get<std::initializer_list<Property>>(value)); in Serialize() 102 } else if (std::holds_alternative<Property::Constant>(value)) { in Serialize() 103 SerializeConstant(std::get<Property::Constant>(value)); in Serialize() 166 void AstDumper::SerializeConstant(Property::Constant constant) in SerializeConstant() 169 case Property in SerializeConstant() [all...] |
/arkcompiler/ets_frontend/es2panda/ir/base/ |
H A D | property.cpp | 29 bool Property::ConventibleToPatternProperty() in ConventibleToPatternProperty() 57 ValidationInfo Property::ValidateExpression() in ValidateExpression() 90 void Property::Iterate(const NodeTraverser &cb) const in Iterate() 96 void Property::Dump(ir::AstDumper *dumper) const in Dump() 122 dumper->Add({{"type", "Property"}, in Dump() 131 void Property::Compile([[maybe_unused]] compiler::PandaGen *pg) const {} in Compile() 133 checker::Type *Property::Check([[maybe_unused]] checker::Checker *checker) const in Check() 138 void Property::UpdateSelf(const NodeUpdater &cb, [[maybe_unused]] binder::Binder *binder) in UpdateSelf()
|
H A D | property.h | 35 class Property : public Expression { class 37 explicit Property(Expression *key, Expression *value) in Property() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::Property 48 explicit Property(PropertyKind kind, Expression *key, Expression *value, bool isMethod, bool isComputed) in Property() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::Property
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/ |
H A D | memberExpression.h | 101 [[nodiscard]] Expression *Property() noexcept 106 [[nodiscard]] const Expression *Property() const noexcept 116 return Property()->Variable() != nullptr ? Property()->Variable()->AsLocalVariable() : nullptr; 124 return Property()->Variable() != nullptr ? Property()->Variable()->AsLocalVariable() : nullptr; 159 ASSERT(Property()); 160 Property()->SetVariable(propVar);
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/ |
H A D | tupleLowering.cpp | 63 *checker_->GetTupleElementAccessValue(argument_->AsMemberExpression()->Property()->TsType(), in ComputeTypes() 64 argument_->AsMemberExpression()->Property()->Start())); in ComputeTypes() 146 argumentClone->Property()->SetTsType(memberExpr->Property()->TsType()); in CloneArgument() 147 if (argumentClone->Property()->IsIdentifier()) { in CloneArgument() 148 argumentClone->Property()->AsIdentifier()->SetVariable(memberExpr->Property()->AsIdentifier()->Variable()); in CloneArgument()
|
H A D | objectIndexAccess.cpp | 41 CALL_EXPRESSION, memberExpression->Object(), memberExpression->Property(), assignmentExpression->Right()); in ProcessIndexSetAccess() 59 parser->CreateFormattedExpression(CALL_EXPRESSION, memberExpression->Object(), memberExpression->Property()); in ProcessIndexGetAccess()
|
/arkcompiler/ets_frontend/ets2panda/util/ast-builders/ |
H A D | propertyBuilder.h | 25 class PropertyBuilder : public AstBuilder<ir::Property> { 59 Property *Build() in Build()
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
H A D | tsEnumDeclaration.cpp | 103 name = expr->Property()->AsIdentifier()->Name(); in EvaluateMemberExpression() 105 ASSERT(checker::TSChecker::IsStringLike(expr->Property())); in EvaluateMemberExpression() 106 name = reinterpret_cast<const ir::StringLiteral *>(expr->Property())->Str(); in EvaluateMemberExpression()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/ |
H A D | memberExpression.h | 59 const Expression *Property() const in Property() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::MemberExpression 64 Expression *Property() in Property() function in panda::es2panda::panda::es2panda::panda::es2panda::ir::MemberExpression
|
H A D | objectExpression.h | 93 void CompilePropertyOfGetterOrSetter(compiler::PandaGen *pg, const ir::Property *prop, 95 void CompilePropertyWithInit(compiler::PandaGen *pg, const ir::Property *prop, compiler::VReg objReg) const;
|
H A D | objectExpression.cpp | 240 static const Literal *CreateLiteral(compiler::PandaGen *pg, const ir::Property *prop, util::BitSet *compiled, in CreateLiteral() 287 const ir::Property *prop = properties_[i]->AsProperty(); in CompileStaticProperties() 334 void ObjectExpression::CompilePropertyOfGetterOrSetter(compiler::PandaGen *pg, const ir::Property *prop, in CompilePropertyOfGetterOrSetter() 360 void ObjectExpression::CompilePropertyWithInit(compiler::PandaGen *pg, const ir::Property *prop, in CompilePropertyWithInit() 416 const ir::Property *prop = properties_[i]->AsProperty(); in CompileRemainingProperties() 480 const ir::Property *prop = (*it)->AsProperty(); in CheckPattern() 614 binder::VariableFlags GetFlagsForProperty(const ir::Property *prop) in GetFlagsForProperty() 629 checker::Type *GetTypeForProperty(const ir::Property *prop, checker::Checker *checker) in GetTypeForProperty() 663 const ir::Property *prop = it->AsProperty(); in Check()
|
H A D | unaryExpression.cpp | 138 if (memberArg->Property()->IsTSPrivateIdentifier() || memberArg->Property()->IsPrivateIdentifier()) { in Check()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/dynamic/ |
H A D | dynamicCall.cpp | 71 ASSERT(memberExpr->Property()->IsIdentifier()); in SqueezeExpr() 72 name.emplace_back(memberExpr->Property()->AsIdentifier()->Name()); in SqueezeExpr()
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
H A D | lreference.cpp | 93 Function::LoadClassContexts(Node(), pg_, privateCtor_, memberExpr->Property()->AsIdentifier()->Name()); in JSLReference() 100 prop_ = pg_->ToNamedPropertyKey(memberExpr->Property(), memberExpr->IsComputed()); in JSLReference() 109 memberExpr->Property()->Compile(pg_); in JSLReference() 197 TargetTypeContext pttctx(etsg_, memberExpr->Property()->TsType()); in ETSLReference() 198 memberExpr->Property()->Compile(etsg_); in ETSLReference() 199 etsg_->ApplyConversion(memberExpr->Property()); in ETSLReference() 353 const auto &propName = memberExpr->Property()->AsIdentifier()->Name(); in SetValue()
|
H A D | destructuring.cpp | 152 static std::tuple<const ir::Expression *, const ir::Expression *> GetAssignmentTarget(const ir::Property *propExpr) in GetAssignmentTarget() 209 const ir::Property *propExpr = element->AsProperty(); in GenObjectWithRest() 253 const ir::Property *propExpr = element->AsProperty(); in GenObject()
|
/arkcompiler/ets_frontend/ets2panda/checker/ts/ |
H A D | typeElaborationContext.cpp | 98 Type *ObjectElaborationContext::NonComputedPropKeyType(ir::Property *prop) in NonComputedPropKeyType() 128 ir::Property *prop = it->AsProperty(); in Start()
|
/arkcompiler/ets_frontend/es2panda/ir/expressions/literals/ |
H A D | nullLiteral.cpp | 28 dumper->Add({{"type", "NullLiteral"}, {"value", AstDumper::Property::Constant::PROP_NULL}}); in Dump()
|
/arkcompiler/ets_frontend/ets2panda/ir/expressions/literals/ |
H A D | nullLiteral.cpp | 34 dumper->Add({{"type", "NullLiteral"}, {"value", AstDumper::Property::Constant::PROP_NULL}}); in Dump()
|
H A D | undefinedLiteral.cpp | 35 dumper->Add({{"type", "UndefinedLiteral"}, {"value", AstDumper::Property::Constant::PROP_UNDEFINED}}); in Dump()
|
/arkcompiler/runtime_core/static_core/runtime/tooling/inspector/tests/ |
H A D | json_object_matcher.h | 188 Property(PropertyTypeName<PropertyType>(), &JsonObject::Value::Get<PropertyType>, Pointee(matcher))...); in JsonElements() 197 return Property(PropertyTypeName<PropertyType>(), &JsonObject::Value::Get<PropertyType>, Pointee(matcher)); in JsonElementsAreArray()
|