/arkcompiler/ets_runtime/ecmascript/tests/ |
D | glue_regs_test.cpp | 87 #define CONSTANT_STRING_ITERATOR(Type, Name, Index, Desc) \ in HWTEST_F_L0() argument 88 Type Name##value = globalConst->Get##Name(); \ in HWTEST_F_L0() 89 EXPECT_TRUE(!Name##value.IsNull()); \ in HWTEST_F_L0() 90 JSHandle<Type> Name##handledValue = globalConst->GetHandled##Name(); \ in HWTEST_F_L0() 91 EXPECT_TRUE(!Name##handledValue->IsNull()); in HWTEST_F_L0() 101 #define CONSTANT_ACCESSOR_ITERATOR(Type, Name, Index, Desc) \ in HWTEST_F_L0() argument 102 Type Name##value = globalConst->Get##Name(); \ in HWTEST_F_L0() 103 EXPECT_TRUE(!Name##value.IsNull()); \ in HWTEST_F_L0() 104 JSHandle<Type> Name##handledValue = globalConst->GetHandled##Name(); \ in HWTEST_F_L0() 105 EXPECT_TRUE(!Name##handledValue->IsNull()); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/classes/ |
D | test-ts-classes-25.ts | 19 abstract get Name(); method in Base 20 abstract set Name(value: string); 25 get Name() { 28 set Name(value: string) { 35 print(d.Name, "ok");
|
/arkcompiler/ets_runtime/test/aottest/ts_inline_accessor_same_name/ |
D | ts_inline_accessor_same_name.ts | 25 set Name(str: string ) { 29 get Name() { 36 print(p.Name); 37 p.Name = "xiaohong" 38 print(p.Name)
|
/arkcompiler/ets_runtime/ecmascript/ |
D | global_env_constants-inl.h | 57 #define DECL_GET_IMPL_COMMON(Type, Name, Index) \ argument 58 inline const Type GlobalEnvConstants::Get##Name() const \ 62 inline const JSHandle<Type> GlobalEnvConstants::GetHandled##Name() const \ 67 inline size_t GlobalEnvConstants::GetOffsetOf##Name() \ 73 #define DECL_GET_IMPL_WITH_TYPE(Type, Name, Index, Desc) DECL_GET_IMPL_COMMON(Type, Name, Index) argument 80 #define DECL_GET_IMPL_STRING(Name, Index, Token) DECL_GET_IMPL_COMMON(JSTaggedValue, Name, Index) argument
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
D | lexenv.cpp | 41 pg->ThrowConstAssignment(node, variable->Name()); in CheckConstAssignment() 52 ASSERT(result.name == classDef->Ident()->Name()); in ExpandLoadLexVar() 57 …lVar(node, result.lexLevel, result.variable->AsLocalVariable()->LexIdx(), result.variable->Name()); in ExpandLoadLexVar() 60 pg->ThrowUndefinedIfHole(node, result.variable->Name()); in ExpandLoadLexVar() 70 pg->ThrowUndefinedIfHole(node, local->Name()); in ExpandLoadNormalVar() 93 ASSERT(result.name == classDef->Ident()->Name()); in ExpandStoreLexVar() 111 pg->ThrowConstAssignment(node, local->Name()); in ExpandStoreLexVar() 129 pg->ThrowUndefinedIfHole(node, local->Name()); in ExpandStoreNormalVar() 141 DCOUT << "[LOG]Local vreg in " << tag << " has type index: " << local->Name() << in ExpandStoreNormalVar() 153 … DCOUT << "[WARNING]Local vreg lose type index: " << local->Name() << "@" << local << std::endl; in ExpandStoreNormalVar()
|
D | hoisting.cpp | 31 auto *var = pg->Scope()->FindLocal(decl->Name()); in StoreModuleVarOrLocalVar() 48 pg->StoreGlobalVar(decl->Node(), decl->Name()); in HoistVar() 53 if (scope->HasParamScope() && funcScope->ParamScope()->HasParam(decl->Name())) { in HoistVar() 57 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistVar() 74 pg->StoreGlobalVar(decl->Node(), var->Declaration()->Name()); in HoistFunction() 81 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistFunction()
|
/arkcompiler/ets_frontend/ets2panda/parser/context/ |
D | classPrivateContext.cpp | 27 util::StringView newPropName = elem->Id()->Name(); in AddElement() 43 if (ident == nullptr || !ident->IsPrivateIdent() || ident->Name() != newPropName || in AddElement() 64 if (it->Id()->Name().Compare(elem->Name()) == 0) { in FindElement()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ets/ |
D | etsEnumType.cpp | 92 ss << decl_->Key()->Name(); in ToString() 113 return decl_->Key()->Name(); in GetName() 126 …checker->ThrowTypeError({"Enum constant do not have property '", prop->Name(), "'"}, prop->Start()… in LookupConstant() 129 auto *const member = FindMember(prop->Name()); in LookupConstant() 131 …checker->ThrowTypeError({"No enum constant named '", prop->Name(), "' in enum '", this, "'"}, prop… in LookupConstant() 290 return node->AsTSEnumMember()->Key()->AsIdentifier()->Name() == name; in FindMember() 302 if (prop->Name() == TO_STRING_METHOD_NAME) { in LookupConstantMethod() 307 if (prop->Name() == GET_VALUE_METHOD_NAME) { in LookupConstantMethod() 312 if (prop->Name() == GET_NAME_METHOD_NAME) { in LookupConstantMethod() 317 checker->ThrowTypeError({"No enum item method called '", prop->Name(), "'"}, prop->Start()); in LookupConstantMethod() [all …]
|
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/scopesInit/ |
D | scopesInitPhase.cpp | 173 auto [decl, var] = AddVarDecl(varDecl->Flag(), varDecl->Start(), binding->Name()); in VisitVariableDeclarator() 226 … const auto name = exportAllDecl->Exported() != nullptr ? exportAllDecl->Exported()->Name() : "*"; in VisitExportAllDeclaration() 234 …VarBinder()->AddDecl<varbinder::ImportDecl>(importSpec->Start(), "*", importSpec->Local()->Name(),… in VisitImportNamespaceSpecifier() 241 …>AddDecl<varbinder::ImportDecl>(importSpec->Start(), imported->Name(), importSpec->Local()->Name(), in VisitImportSpecifier() 249 … VarBinder()->AddDecl<varbinder::ImportDecl>(local->Start(), "default", local->Name(), importSpec); in VisitImportDefaultSpecifier() 280 … *decl = VarBinder()->AddDecl<varbinder::ExportDecl>(exportDecl->Start(), spec->Exported()->Name(), in VisitExportNamedDeclaration() 281 spec->Local()->Name(), spec); in VisitExportNamedDeclaration() 331 …er()->AddDecl<varbinder::FunctionDecl>(func->Id()->Start(), Allocator(), func->Id()->Name(), func); in CreateFuncDecl() 336 return id->Name(); in FormInterfaceOrEnumDeclarationIdBinding() 346 …auto identDecl = VarBinder()->AddDecl<varbinder::ConstDecl>(identNode->Start(), identNode->Name()); in BindClassName() [all …]
|
/arkcompiler/ets_frontend/es2panda/binder/ |
D | scope.cpp | 225 … privateNames_[stmt->AsClassProperty()->Key()->AsPrivateIdentifier()->Name()] = slotIndex_++; in AddPrivateName() 231 auto name = methodDef->Key()->AsPrivateIdentifier()->Name(); in AddPrivateName() 285 if (it->Name() == name) { in FindDecl() 296 if (it->Name() == name && it->IsVarDecl()) { in HasVarDecl() 332 newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); }); in AddLocal() 340 … scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal() 342 … scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal() 349 … newDecl->Name(), allocator->New<EnumLiteralVariable>(newDecl, VariableFlags::ENUM_LITERAL)); in AddLocal() 352 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE… in AddLocal() 364 if (HasVarDecl(newDecl->Name())) { in AddLocal() [all …]
|
D | variable.cpp | 31 const util::StringView &Variable::Name() const in Name() function in panda::es2panda::binder::Variable 33 return decl_->Name(); in Name() 52 auto name = Declaration()->Name(); in SetLexical()
|
/arkcompiler/ets_frontend/ets2panda/varbinder/ |
D | scope.cpp | 168 if (it->Name() == name) { in FindDecl() 200 …IterateShadowedVariables(newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags… in AddLocalVar() 208 …return scope->InsertBinding(newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)).fi… in AddLocalVar() 211 return scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocalVar() 223 …return bindings_.insert({newDecl->Name(), allocator->New<EnumVariable>(newDecl, false)}).first->se… in AddLocal() 227 … .insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::ENUM_LITERAL)}) in AddLocal() 231 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::IN… in AddLocal() 236 … .insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::TYPE_PARAMETER)}) in AddLocal() 249 … newDecl->Name(), [](const Variable *v) { return v->HasFlag(VariableFlags::LEXICAL_VAR); }); in AddLocal() 256 …return bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}).first->s… in AddLocal() [all …]
|
D | ETSBinder.cpp | 96 const auto &name = ident->Name(); in LookupTypeReference() 149 …if (auto const res = scope->Find(ident->Name(), ResolveBindingOptions::ALL); res.variable != nullp… in ResolveReferenceForScope() 175 const auto &name = ident->Name(); in LookupIdentReference() 205 auto res = GetScope()->Find(decl->Id()->Name()); in InitializeInterfaceIdent() 240 … ->FindLocal(stmt->AsClassProperty()->Id()->Name(), varbinder::ResolveBindingOptions::BINDINGS); in ResolveInterfaceDeclaration() 288 if (!params.empty() && params.front()->Name() == MANDATORY_PARAM_THIS) { in ResolveMethodDefinition() 348 auto fieldName = stmt->AsClassProperty()->Id()->Name(); in BuildClassDefinitionImpl() 426 return specifier->AsImportNamespaceSpecifier()->Local()->Name(); in AddDynamicSpecifiersToTopBindings() 429 return specifier->AsImportSpecifier()->Local()->Name(); in AddDynamicSpecifiersToTopBindings() 493 if (namespaceSpecifier->Local()->Name().Empty()) { in AddImportNamespaceSpecifiersToTopBindings() [all …]
|
D | recordTable.cpp | 63 return recordIdent_->Name(); in FormRecordName() 69 recordName.Append(recordIdent_->Name()); in FormRecordName() 76 recordName.Append(recordIdent_->Name()); in FormRecordName()
|
/arkcompiler/ets_frontend/ets2panda/util/ |
D | helpers.cpp | 68 return lit->AsIdentifier()->Name(); in LiteralToPropName() 448 if (!Helpers::IsGlobalIdentifier(node->AsIdentifier()->Name())) { in CollectBindingName() 493 auto newIdentName = specifier->Imported()->Name(); in CheckImportedName() 494 auto newAliasName = specifier->Local()->Name(); in CheckImportedName() 502 auto savedIdentName = it->AsImportSpecifier()->Imported()->Name(); in CheckImportedName() 503 auto savedAliasName = it->AsImportSpecifier()->Local()->Name(); in CheckImportedName() 523 return func->Id()->Name(); in FunctionName() 535 return parent->AsClassDefinition()->Ident()->Name(); in FunctionName() 546 return varDecl->Id()->AsIdentifier()->Name(); in FunctionName() 558 return ident->Name(); in FunctionName() [all …]
|
D | declgenEts2Ts.cpp | 116 return key->AsIdentifier()->Name().Mutf8(); in GetKeyName() 141 …uto var_name = checkerType->Variable() == nullptr ? "" : checkerType->Variable()->Name().Mutf8(); \ in GenTypeNonNullish() 229 Out(param->Name()); in GenFunctionType() 245 Out("...", sigInfo->restVar->Name().Mutf8(), ": "); in GenFunctionType() 309 auto typeName = objectType->Name(); in GenObjectType() 327 Out(typeParam->GetDeclNode()->Name()->Name()); in GenTypeParameterType() 335 Out(param->Name()->Name()); in GenTypeParameters() 384 const auto local = specifier->AsImportSpecifier()->Local()->Name(); in GenImportDeclaration() 385 const auto imported = specifier->AsImportSpecifier()->Imported()->Name(); in GenImportDeclaration() 404 const auto name = typeAlias->Id()->Name().Mutf8(); in GenTypeAliasDeclaration() [all …]
|
/arkcompiler/ets_frontend/ets2panda/compiler/base/ |
D | hoisting.cpp | 29 pg->StoreGlobalVar(decl->Node(), decl->Name()); in HoistVar() 33 varbinder::ConstScopeFindResult result(decl->Name(), scope, 0, var); in HoistVar() 48 pg->StoreGlobalVar(decl->Node(), var->Declaration()->Name()); in HoistFunction() 53 varbinder::ConstScopeFindResult result(decl->Name(), scope, 0, var); in HoistFunction()
|
D | lexenv.cpp | 38 pg->ThrowConstAssignment(node, variable->Name()); in CheckConstAssignment() 57 pg->ThrowTdz(node, local->Name()); in ExpandLoadNormalVar() 98 pg->ThrowConstAssignment(node, local->Name()); in ExpandStoreLexVar() 117 pg->ThrowTdz(node, local->Name()); in ExpandStoreNormalVar()
|
/arkcompiler/ets_frontend/ets2panda/checker/ets/ |
D | object.cpp | 79 …TypeStackElement tse(this, type, {"Cyclic inheritance involving ", type->Name(), "."}, classDef->I… in GetSuperType() 84 … ThrowTypeError({"The super type of '", classDef->Ident()->Name(), "' class is not extensible."}, in GetSuperType() 92 …ThrowTypeError({"struct ", classDef->Ident()->Name(), " is not extensible."}, classDef->Super()->S… in GetSuperType() 146 …TypeStackElement tse(this, type, {"Cyclic inheritance involving ", type->Name(), "."}, declNode->I… in GetInterfacesOfInterface() 180 constraint->AsETSTypeReference()->Part()->Name()->IsIdentifier()) { in CreateTypeForTypeParameters() 200 const auto typeParamName = param->Name()->Name().Utf8(); in CheckTypeParameterConstraint() 202 param->Constraint()->AsETSTypeReference()->Part()->Name()->AsIdentifier()->Name().Utf8(); in CheckTypeParameterConstraint() 229 auto *const type = param->Name()->Variable()->TsType(); in SetUpTypeParameterConstraint() 238 … const auto typeName = typeNode->AsETSTypeReference()->Part()->Name()->AsIdentifier()->Name(); in SetUpTypeParameterConstraint() 273 param->Name()->Variable()->SetTsType(paramType); in SetUpParameterType() [all …]
|
/arkcompiler/ets_frontend/es2panda/ir/ts/ |
D | tsInterfaceDeclaration.cpp | 72 properties.insert({it->Name(), {it, type}}); in CheckInheritedPropertiesAreIdentical() 81 auto res = properties.find(inheritedProp->Name()); in CheckInheritedPropertiesAreIdentical() 83 … properties.insert({inheritedProp->Name(), {inheritedProp, base->AsInterfaceType()}}); in CheckInheritedPropertiesAreIdentical() 107 …dType = checker->Allocator()->New<checker::InterfaceType>(checker->Allocator(), id_->Name(), desc); in Check() 117 … {"Interface '", id_->Name(), "' incorrectly extends interface '", base, "'"}, in Check()
|
/arkcompiler/ets_frontend/ets2panda/ir/ts/ |
D | tsQualifiedName.cpp | 78 packageName.Append(iter->Left()->AsIdentifier()->Name()); in ToString() 84 packageName.Append(parent->AsTSQualifiedName()->Right()->AsIdentifier()->Name()); in ToString() 101 packageName.Append(iter->Left()->AsIdentifier()->Name()); in BaseToString() 107 packageName.Append(parent->AsTSQualifiedName()->Right()->AsIdentifier()->Name()); in BaseToString()
|
/arkcompiler/ets_frontend/es2panda/typescript/types/ |
D | enumType.cpp | 24 ss << enumLiteralVar_->Name() << "." << enumVar_->Name(); in ToString()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/ |
D | enumType.cpp | 23 ss << enumLiteralVar_->Name() << "." << enumVar_->Name(); in ToString()
|
/arkcompiler/runtime_core/static_core/docs/ |
D | file_format.md | 90 | Name | Format | Description | 101 | Name | Format | Description | 140 | Name | Value | Description | 154 | Name | Value | Description | 171 | Name | Value | Description | 186 | Name | Value | 206 | Name | Format | Description | 233 | Name | Format | Description | 263 | Name | Format | Description | 277 | Name | Format | Description | [all …]
|
/arkcompiler/runtime_core/docs/ |
D | file_format.md | 90 | Name | Format | Description | 101 | Name | Format | Description | 140 | Name | Value | Description | 154 | Name | Value | Description | 171 | Name | Value | Description | 186 | Name | Value | 206 | Name | Format | Description | 233 | Name | Format | Description | 263 | Name | Format | Description | 277 | Name | Format | Description | [all …]
|