/arkcompiler/ets_frontend/ts2panda/src/base/ |
D | properties.ts | 130 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/ |
D | ts_type.cpp | 52 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 …]
|
D | ts_type.h | 57 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 …]
|
D | ts_type_accessor.cpp | 35 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()
|
D | ts_type_parser.cpp | 437 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/ |
D | test-ts-decorators-16.ts | 24 return function (target: any, propName: any) { print("inner-propDec-", propName); }
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
D | forInStatement.cpp | 51 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/ |
D | interface_index_signature.ts | 22 [propName: string]: any;
|
/arkcompiler/ets_frontend/ts2panda/src/statement/ |
D | loopStatement.ts | 266 let propName = pandaGen.getTemp(); 289 pandaGen.storeAccumulator(stmt, propName); 293 pandaGen.loadAccumulator(stmt, propName); 309 pandaGen.freeTemps(iterReg, propName);
|
D | classStatement.ts | 441 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/ |
D | parserImpl.cpp | 1010 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 …]
|
D | parserImpl.h | 293 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/ |
D | diagnostic.ts.erb | 121 % propName = convertPropertyName(name) 123 <%= propName %> = <%= code %>, 168 % propName = convertPropertyName(name) 175 % key = createKey(propName,code)
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
D | function.cpp | 488 util::StringView propName; in CreatePatternParameterName() local 491 propName = prop->Key()->AsIdentifier()->Name(); in CreatePatternParameterName() 495 … propName = 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()
|
D | object.cpp | 410 util::StringView propName = in GetPropertyTypeForIndexType() local 412 prop = GetPropertyOfType(type, propName); in GetPropertyTypeForIndexType()
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
D | destructuring.cpp | 201 VReg propName = pg->AllocReg(); in GenObjectWithRest() local 208 pg->StoreAccumulator(element, propName); in GenObjectWithRest()
|
/arkcompiler/ets_frontend/ts2panda/src/ |
D | recorder.ts | 683 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/ |
D | objectExpression.cpp | 663 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/ |
D | objectLiteralExpression.ts | 151 let propName = String(prop.getName()); 167 pandaGen.loadAccumulatorString(accessor!, propName);
|
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/ |
D | ts_type_parser_test.cpp | 423 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/ |
D | runtime_stubs-inl.h | 1352 JSHandle<EcmaString> propName = JSTaggedValue::ToString(thread, prop); in RuntimeThrowReferenceError() local 1355 JSHandle<EcmaString> msg = factory->ConcatFromString(propName, info); in RuntimeThrowReferenceError()
|