Home
last modified time | relevance | path

Searched refs:propName (Results 1 – 21 of 21) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/base/
Dproperties.ts130 let propName: number | string = <number | string>getPropName(property.name);
131 if (propName === "__proto__") {
133 …defineProperty(propName, property.initializer, PropertyKind.PROTOTYPE, properties, namedPropertyMa…
142 …defineProperty(propName, property.initializer, PropertyKind.CONSTANT, properties, namedPropertyMap…
144 …defineProperty(propName, property.initializer, PropertyKind.VARIABLE, properties, namedPropertyMap…
150 let propName = jshelpers.getTextOfIdentifierOrLiteral(property.name);
151 … defineProperty(propName, property.name, PropertyKind.VARIABLE, properties, namedPropertyMap);
159 let propName = getPropName(property.name);
160 if (typeof (propName) === 'string' || typeof (propName) === 'number') {
161 … defineProperty(propName, property, PropertyKind.VARIABLE, properties, namedPropertyMap);
[all …]
/arkcompiler/ets_runtime/ecmascript/ts_types/
Dts_type.cpp52 JSHandle<JSTaggedValue> propName) in GetPropTypeGT() argument
61 propTypeGT = TSObjectType::GetPropTypeGT(thread, mutableConstructorType, propName); in GetPropTypeGT()
78 … JSHandle<JSTaggedValue> propName, PropertyType propType) in GetSuperPropTypeGT() argument
95 propTypeGT = TSObjectType::GetPropTypeGT(thread, mutablePropTypes, propName); in GetSuperPropTypeGT()
112 JSHandle<JSTaggedValue> propName) in GetNonStaticPropTypeGT() argument
117 GlobalTSTypeRef propTypeGT = TSObjectType::GetPropTypeGT(thread, instanceType, propName); in GetNonStaticPropTypeGT()
126 propTypeGT = TSObjectType::GetPropTypeGT(thread, mutablePrototypeType, propName); in GetNonStaticPropTypeGT()
143 JSHandle<JSTaggedValue> propName, GlobalTSTypeRef newGT) in UpdateNonStaticPropTypeGT() argument
147 TSObjectType::UpdatePropTypeGT(thread, instanceType, propName, newGT); in UpdateNonStaticPropTypeGT()
151 JSHandle<JSTaggedValue> propName, GlobalTSTypeRef newGT) in UpdateStaticPropTypeGT() argument
[all …]
Dts_type.h57 JSHandle<JSTaggedValue> propName);
60 JSHandle<JSTaggedValue> propName, GlobalTSTypeRef newGT);
79 JSHandle<JSTaggedValue> propName);
82 … JSHandle<JSTaggedValue> propName, PropertyType propType);
85 JSHandle<JSTaggedValue> propName);
88 JSHandle<JSTaggedValue> propName, GlobalTSTypeRef newGT);
91 JSHandle<JSTaggedValue> propName, GlobalTSTypeRef newGT);
130 JSHandle<JSTaggedValue> propName);
161 JSHandle<JSTaggedValue> propName);
232 JSHandle<JSTaggedValue> propName);
[all …]
Dts_type_accessor.cpp35 JSHandle<JSTaggedValue> propName(thread_, key); in UpdateNonStaticProp() local
36 TSClassType::UpdateNonStaticPropTypeGT(thread_, classType, propName, newGT); in UpdateNonStaticProp()
43 JSHandle<JSTaggedValue> propName(thread_, key); in UpdateStaticProp() local
44 TSClassType::UpdateStaticPropTypeGT(thread_, classType, propName, newGT); in UpdateStaticProp()
Dts_type_parser.cpp437 JSHandle<JSTaggedValue> propName(factory_->NewFromUtf8(literalKey)); in FillPropTypes() local
438 key.Update(propName.GetTaggedValue()); in FillPropTypes()
/arkcompiler/ets_frontend/es2panda/test/compiler/ts/cases/conformance/decorators/
Dtest-ts-decorators-16.ts24 return function (target: any, propName: any) { print("inner-propDec-", propName); }
/arkcompiler/ets_frontend/es2panda/ir/statements/
DforInStatement.cpp51 compiler::VReg propName = pg->AllocReg(); in Compile() local
85 pg->StoreAccumulator(this, propName); in Compile()
91 pg->LoadAccumulator(this, propName); in Compile()
/arkcompiler/ets_frontend/arkguard/test/grammar/interface_validation/
Dinterface_index_signature.ts22 [propName: string]: any;
/arkcompiler/ets_frontend/ts2panda/src/statement/
DloopStatement.ts266 let propName = pandaGen.getTemp();
289 pandaGen.storeAccumulator(stmt, propName);
293 pandaGen.loadAccumulator(stmt, propName);
309 pandaGen.freeTemps(iterReg, propName);
DclassStatement.ts441 propName: string | number | ts.ComputedPropertyName | undefined,
448 let prop = new Property(propKind, <ts.ComputedPropertyName | undefined>propName);
457 let name_str = propertyKeyAsString(<string | number>propName);
459 let prop = new Property(propKind, propName);
521 let propName = outerNode.name;
522 … if (ts.isIdentifier(propName) || ts.isStringLiteral(propName) || ts.isNumericLiteral(propName)) {
523 className = jshelpers.getTextOfIdentifierOrLiteral(propName);
/arkcompiler/ets_frontend/es2panda/parser/
DparserImpl.cpp1010 auto *propName = AllocNode<ir::Identifier>(lexer_->GetToken().Ident()); in ParseTsQualifiedReference() local
1011 propName->SetRange(lexer_->GetToken().Loc()); in ParseTsQualifiedReference()
1013 typeName = AllocNode<ir::TSQualifiedName>(typeName, propName); in ParseTsQualifiedReference()
1351 util::StringView propName = "__computed"; in CreateTSVariableForProperty() local
1355 propName = key->AsIdentifier()->Name(); in CreateTSVariableForProperty()
1359 propName = key->AsNumberLiteral()->Str(); in CreateTSVariableForProperty()
1364 propName = key->AsStringLiteral()->Str(); in CreateTSVariableForProperty()
1373 …propVar = isMethod ? binder::Scope::CreateVar<binder::MethodDecl>(Allocator(), propName, flags, no… in CreateTSVariableForProperty()
1374 … : binder::Scope::CreateVar<binder::PropertyDecl>(Allocator(), propName, flags, node); in CreateTSVariableForProperty()
2076 …::CheckAccessorPair(const ArenaVector<ir::Statement *> &properties, const ir::Expression *propName, in CheckAccessorPair() argument
[all …]
DparserImpl.h293 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator,
296 ir::Expression *propName, ir::ScriptFunction *func, bool hasDecorator,
299 ir::Expression *propName, lexer::SourcePosition *propEnd,
302 ir::Expression *propName, ir::Expression *typeAnnotation,
349 …d CheckAccessorPair(const ArenaVector<ir::Statement *> &properties, const ir::Expression *propName,
/arkcompiler/ets_frontend/ts2panda/templates/
Ddiagnostic.ts.erb121 % propName = convertPropertyName(name)
123 <%= propName %> = <%= code %>,
168 % propName = convertPropertyName(name)
175 % key = createKey(propName,code)
/arkcompiler/ets_frontend/es2panda/typescript/core/
Dfunction.cpp488 util::StringView propName; in CreatePatternParameterName() local
491 propName = prop->Key()->AsIdentifier()->Name(); in CreatePatternParameterName()
495propName = util::Helpers::ToStringView(allocator_, prop->Key()->AsNumberLiteral()->Number()); in CreatePatternParameterName()
499 propName = prop->Key()->AsBigIntLiteral()->Str(); in CreatePatternParameterName()
503 propName = prop->Key()->AsStringLiteral()->Str(); in CreatePatternParameterName()
513 ss << propName; in CreatePatternParameterName()
Dobject.cpp410 util::StringView propName = in GetPropertyTypeForIndexType() local
412 prop = GetPropertyOfType(type, propName); in GetPropertyTypeForIndexType()
/arkcompiler/ets_frontend/es2panda/compiler/base/
Ddestructuring.cpp201 VReg propName = pg->AllocReg(); in GenObjectWithRest() local
208 pg->StoreAccumulator(element, propName); in GenObjectWithRest()
/arkcompiler/ets_frontend/ts2panda/src/
Drecorder.ts683 let propName = outerNode.name;
684 … if (ts.isIdentifier(propName) || ts.isStringLiteral(propName) || ts.isNumericLiteral(propName)) {
685 name = jshelpers.getTextOfIdentifierOrLiteral(propName);
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DobjectExpression.cpp663 const util::StringView &propName = GetPropertyName(prop->Key()); in Check() local
665 auto *memberVar = binder::Scope::CreateVar(checker->Allocator(), propName, flags, it); in Check()
679 binder::LocalVariable *foundMember = desc->FindProperty(propName); in Check()
680 allPropertiesMap.insert({propName, it->Start()}); in Check()
/arkcompiler/ets_frontend/ts2panda/src/expression/
DobjectLiteralExpression.ts151 let propName = String(prop.getName());
167 pandaGen.loadAccumulatorString(accessor!, propName);
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/
Dts_type_parser_test.cpp423 JSHandle<JSTaggedValue> propName(factory->NewFromStdString(ageStr)); in HWTEST_F_L0() local
424 GlobalTSTypeRef propGT = TSObjectType::GetPropTypeGT(thread, objectType, propName); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h1352 JSHandle<EcmaString> propName = JSTaggedValue::ToString(thread, prop); in RuntimeThrowReferenceError() local
1355 JSHandle<EcmaString> msg = factory->ConcatFromString(propName, info); in RuntimeThrowReferenceError()