Home
last modified time | relevance | path

Searched refs:Name (Results 1 – 25 of 75) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/tests/
Dglue_regs_test.cpp87 #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_runtime/test/typeinfer/automatedcases/declarationEmitWithDefaultAsComputedName/
Dother.ts21 type Experiment<Name> = {
22 name: Name;
24 declare const createExperiment: <Name extends string>(
27 options: Experiment<Name>
30 ) => Experiment<Name>;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/declarationEmitWithDefaultAsComputedName2/
Dother.ts21 type Experiment<Name> = {
22 name: Name;
24 declare const createExperiment: <Name extends string>(
27 options: Experiment<Name>
30 ) => Experiment<Name>;
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/classes/
Dtest-ts-classes-25.ts19 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/typeinfer/automatedcases/
DinlinedAliasAssignableToConstraintSameAsAlias.ts26 type Name = keyof RelationFields; alias
27 type ShouldA<RF extends RelationFields, N extends Name> = RF[N] extends A[]
38 N extends Name = Name,
/arkcompiler/ets_frontend/es2panda/compiler/base/
Dlexenv.cpp40 pg->ThrowConstAssignment(node, variable->Name()); in CheckConstAssignment()
47 …lVar(node, result.lexLevel, result.variable->AsLocalVariable()->LexIdx(), result.variable->Name()); in ExpandLoadLexVar()
50 pg->ThrowUndefinedIfHole(node, result.variable->Name()); in ExpandLoadLexVar()
60 pg->ThrowUndefinedIfHole(node, local->Name()); in ExpandLoadNormalVar()
92 pg->ThrowConstAssignment(node, local->Name()); in ExpandStoreLexVar()
110 pg->ThrowUndefinedIfHole(node, local->Name()); in ExpandStoreNormalVar()
122 DCOUT << "[LOG]Local vreg in " << tag << " has type index: " << local->Name() << in ExpandStoreNormalVar()
134 … DCOUT << "[WARNING]Local vreg lose type index: " << local->Name() << "@" << local << std::endl; in ExpandStoreNormalVar()
Dhoisting.cpp31 auto *var = pg->Scope()->FindLocal(decl->Name()); in StoreModuleVarOrLocalVar()
48 pg->StoreGlobalVar(decl->Node(), decl->Name()); in HoistVar()
53 if (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()
80 binder::ScopeFindResult result(decl->Name(), scope, 0, var); in HoistFunction()
/arkcompiler/ets_runtime/ecmascript/
Dglobal_env_constants-inl.h57 #define DECL_GET_IMPL(Type, Name, Index, Desc) \ 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() \
/arkcompiler/ets_frontend/es2panda/binder/
Dscope.cpp152 if (it->Name() == name) { in FindDecl()
163 if (it->Name() == name && it->IsVarDecl()) { in HasVarDecl()
199 newDecl->Name(), [](const Variable *v) { return !v->HasFlag(VariableFlags::VAR); }); in AddLocal()
207 … scope->Bindings().insert({newDecl->Name(), allocator->New<GlobalVariable>(newDecl, varFlags)}); in AddLocal()
209 … scope->PropagateBinding<LocalVariable>(allocator, newDecl->Name(), newDecl, varFlags); in AddLocal()
216 … newDecl->Name(), allocator->New<EnumLiteralVariable>(newDecl, VariableFlags::ENUM_LITERAL)); in AddLocal()
219 …bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, VariableFlags::INTERFACE… in AddLocal()
231 if (HasVarDecl(newDecl->Name())) { in AddLocal()
235 bindings_.insert({newDecl->Name(), allocator->New<LocalVariable>(newDecl, flags)}); in AddLocal()
252 bindings_.insert({newDecl->Name(), param}); in AddParam()
[all …]
Dvariable.cpp31 const util::StringView &Variable::Name() const in Name() function in panda::es2panda::binder::Variable
33 return decl_->Name(); in Name()
51 auto name = Declaration()->Name(); in SetLexical()
Dbinder.h285 AddDeclarationName(decl->Name()); in AddTsDecl()
289 ThrowRedeclaration(pos, decl->Name()); in AddTsDecl()
300 AddDeclarationName(decl->Name()); in AddTsDecl()
304 ThrowRedeclaration(pos, decl->Name()); in AddTsDecl()
314 AddDeclarationName(decl->Name(), decl->Type()); in AddDecl()
318 ThrowRedeclaration(pos, decl->Name()); in AddDecl()
329 AddDeclarationName(decl->Name(), decl->Type()); in AddDecl()
333 ThrowRedeclaration(pos, decl->Name()); in AddDecl()
Dscope.h280 return AddBinding(allocator, FindLocal(decl->Name()), decl, extension); in AddDecl()
286 …return AddBinding(allocator, FindLocal(decl->Name(), ResolveBindingOptions::ALL), decl, extension); in AddTsDecl()
468 if (param->Name() == name) { in HasParam()
589 const util::StringView &Name() const in Name() function
838 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddVar()
867 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddFunction()
874 bindings_[newDecl->Name()] = allocator->New<T>(newDecl, flags); in AddFunction()
904 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddClass()
923 bindings_.insert({newDecl->Name(), allocator->New<T>(newDecl, flags)}); in AddTSBinding()
933 newDecl->Name(), allocator->New<T>(newDecl, flags)); in AddTSBinding()
[all …]
/arkcompiler/ets_frontend/es2panda/ir/ts/
DtsInterfaceDeclaration.cpp72 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()
DtsQualifiedName.cpp40 binder::Variable *prop = checker->GetPropertyOfType(baseType, right_->Name()); in Check()
54 …checker->ThrowTypeError({"Property ", right_->Name(), " does not exist on this type."}, right_->St… in Check()
DtsEnumDeclaration.cpp74 if (expr->Name() == "NaN") { in EvaluateIdentifier()
77 if (expr->Name() == "Infinity") { in EvaluateIdentifier()
84 checker->ThrowTypeError({"Cannot find name ", expr->AsIdentifier()->Name()}, in EvaluateIdentifier()
138 name = expr->Property()->AsIdentifier()->Name(); in EvaluateMemberExpression()
285 enumVar->SetValue(variable->Declaration()->Name()); in AddEnumValueDeclaration()
371 const util::StringView &currentName = enumScope->Decls()[i]->Name(); in InferType()
379 key_->Name(), checker->Scope(), in InferType()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DenumType.cpp24 ss << enumLiteralVar_->Name() << "." << enumVar_->Name(); in ToString()
DinterfaceType.cpp66 if (targetProp->Name() == sourceProp->Name()) { in Identical()
168 if (currentProp->Name() == collectedProp->Name()) { in CollectProperties()
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DunaryExpression.cpp44 … binder::ScopeFindResult result = pg->Scope()->Find(argument_->AsIdentifier()->Name()); in Compile()
53 pg->LoadAccumulatorString(this, argument_->AsIdentifier()->Name()); in Compile()
82 binder::ScopeFindResult res = pg->Scope()->Find(ident->Name()); in Compile()
89 pg->LoadObjByName(this, global, ident->Name()); in Compile()
92 pg->LoadObjByNameViaDebugger(this, ident->Name(), false); in Compile()
DmemberExpression.cpp102 … {"Property ", property_->AsIdentifier()->Name(), " does not exist on this type."}, in Check()
121 … binder::Variable *prop = checker->GetPropertyOfType(baseType, property_->AsIdentifier()->Name()); in Check()
145 …checker->ThrowTypeError({"Property ", property_->AsIdentifier()->Name(), " does not exist on this … in Check()
/arkcompiler/runtime_core/docs/
Dfile_format.md90 | 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/ets_frontend/es2panda/typescript/core/
Dhelpers.cpp99 const util::StringView &name = expr->AsIdentifier()->Name(); in CheckReferenceExpression()
228 binder::ScopeFindResult result = scope_->Find(childNode->AsIdentifier()->Name()); in IsVariableUsedInConditionBody()
252 binder::ScopeFindResult result = scope_->Find(childNode->AsIdentifier()->Name()); in FindVariableInBinaryExpressionChain()
353 …ThrowTypeError({"Variable ", declarator->Id()->AsIdentifier()->Name(), " implicitly has an any typ… in InferSimpleVariableDeclaratorType()
366 ThrowTypeError({"'", var->Name(), in GetTypeOfVariable()
376 … ThrowTypeError({"Block-scoped variable '", var->Name(), "' used before its declaration"}, in GetTypeOfVariable()
421 … ThrowTypeError({"Parameter ", ident->Name(), " implicitly has an 'any' type."}, ident->Start()); in GetTypeOfVariable()
473 resolvedType = allocator_->New<InterfaceType>(allocator_, var->Name(), desc); in GetTypeFromClassOrInterfaceReference()
487 … ThrowTypeError({"Type alias ", var->Name(), " circularly refences itself"}, node->Start()); in GetTypeFromTypeAliasReference()
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp78 return lit->AsIdentifier()->Name(); in LiteralToPropName()
433 if (!Helpers::IsGlobalIdentifier(node->AsIdentifier()->Name())) { in CollectBindingName()
478 return func->Id()->Name(); in FunctionName()
490 return parent->AsClassDefinition()->Ident()->Name(); in FunctionName()
501 return varDecl->Id()->AsIdentifier()->Name(); in FunctionName()
510 return methodDef->Key()->AsIdentifier()->Name(); in FunctionName()
519 return assignment->Left()->AsIdentifier()->Name(); in FunctionName()
528 return assignment->Left()->AsIdentifier()->Name(); in FunctionName()
558 return {param->AsIdentifier()->Name(), false}; in ParamName()
563 return {param->AsAssignmentPattern()->Left()->AsIdentifier()->Name(), false}; in ParamName()
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/nestedGenericConditionalTypeWithGenericImportType/
Dname.ts24 export type Name<T> = any;
Dindex.ts22 type T<X> = any extends ((any extends any ? any : string) extends any ? import("./name").Name<X> : …
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeExtractor.cpp399 fn(identifier->Name()); in GetTypeIndexFromClassDefinition()
423 fn(identifier->Name()); in GetTypeIndexFromInterfaceNode()
444 fn(identifier->Name()); in GetTypeIndexFromFunctionNode()
497 … auto redirectPath = recorder_->GetNamespacePath(std::string(object->AsIdentifier()->Name())); in GetTypeIndexFromMemberNode()
499 … ExternalType externalType(this, property->AsIdentifier()->Name(), util::StringView(redirectPath)); in GetTypeIndexFromMemberNode()
535 … auto redirectPath = recorder_->GetNamespacePath(std::string(left->AsIdentifier()->Name())); in GetTypeIndexFromTSQualifiedNode()
537 ExternalType externalType(this, right->Name(), util::StringView(redirectPath)); in GetTypeIndexFromTSQualifiedNode()
646 typeIndex = GetTypeIndexFromBuiltin(callee->AsIdentifier()->Name(), in GetTypeIndexFromInitializer()
687 recorder_->SetExportType(std::string(identifier->Name()), typeIndex); in HandleVariableDeclaration()
708 fn(identifier->Name()); in HandleFunctionDeclaration()
[all …]

123