/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | keyRemappingKeyofResult.ts | 21 const sym = Symbol("") 22 AssertType(sym, "unique symbol"); 27 type Orig = { [k: string]: any, str: any, [sym]: any } 43 x = sym; 44 AssertType(x = sym, "unique symbol"); 46 AssertType(sym, "unique symbol"); 57 type Orig = { [k: string]: any, str: any, [sym]: any } & T; 61 AssertType([sym], "any"); 62 AssertType(sym, "unique symbol"); 75 a = sym; [all …]
|
D | symbolType16.ts | 25 let sym: symbol; variable 26 AssertType(sym, "symbol"); 28 sym.newSymbolProp; 29 AssertType(sym.newSymbolProp, "number");
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_symbol.cpp | 87 JSTaggedValue BuiltinsSymbol::SymbolDescriptiveString(JSThread *thread, JSTaggedValue sym) in SymbolDescriptiveString() argument 91 ASSERT(sym.IsSymbol()); in SymbolDescriptiveString() 95 auto symbolObject = reinterpret_cast<JSSymbol *>(sym.GetTaggedObject()); in SymbolDescriptiveString() 177 JSHandle<JSTaggedValue> sym = BuiltinsSymbol::GetCallArg(argv, 0); in KeyFor() local 178 if (!sym->IsSymbol()) { in KeyFor() 188 JSTaggedValue key = table->FindSymbol(sym.GetTaggedValue()); in KeyFor() 203 JSHandle<JSTaggedValue> sym = GetThis(argv); in ToPrimitive() local 205 if (sym->IsSymbol()) { in ToPrimitive() 206 return sym.GetTaggedValue(); in ToPrimitive() 210 if (sym->IsJSPrimitiveRef()) { in ToPrimitive() [all …]
|
D | builtins_symbol.h | 47 static JSTaggedValue SymbolDescriptiveString(JSThread *thread, JSTaggedValue sym);
|
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/ |
D | RenameIdentifierTransformer.ts | 338 const sym: Symbol | undefined = checker.getSymbolAtLocation(targetNode); constant 339 if (!sym) { 353 const sym: Symbol | undefined = checker.getSymbolAtLocation(shadowNode); constant 354 if (!sym || sym.name === 'default') { 358 const mangledName: string = mangledSymbolNames.get(sym); 359 if (!mangledName || mangledName === sym.name) {
|
/arkcompiler/ets_frontend/ts2panda/tests/types/array/ |
D | array_primitives.ts | 20 let sym: symbol[]; variable
|
/arkcompiler/ets_frontend/ts2panda/tests/types/primitives/ |
D | primitives_no_type_annotation.ts | 20 let sym = Symbol("mySym"); variable
|
D | primitives_in_if.ts | 20 let sym: symbol = Symbol("mySym"); variable
|
D | primitives_only_type_annotation.ts | 20 let sym: symbol; variable
|
D | primitives_in_block.ts | 20 let sym: symbol = Symbol("mySym"); variable
|
D | primitives_in_function.ts | 20 let sym: symbol = Symbol("mySym");
|
D | primitives_in_class.ts | 21 sym: symbol = Symbol("mySym"); property in A
|
D | primitives_in_for.ts | 20 let sym: symbol = Symbol("mySym"); variable
|
/arkcompiler/ets_runtime/test/typeinfer/builtins/ |
D | builtins.ts | 217 let sym = Symbol.prototype; 218 AssertType(sym.description, "union"); 219 AssertType(sym.valueOf(), "symbol"); 220 AssertType(sym.toString(), "string");
|
/arkcompiler/ets_frontend/arkguard/src/utils/ |
D | ScopeAnalyzer.ts | 182 getSymbolLocation(sym: Symbol): string; 254 function getSymbolLocation(sym: Symbol): string { 255 if (!defs.has(sym)) { 259 return current.loc ? sym.name : current.loc + '#' + sym.name; 865 let sym: Symbol = checker.getSymbolAtLocation(node); 866 if (!sym) { 871 if (scope?.defs.has(sym)) {
|
/arkcompiler/ets_frontend/test262/ |
D | dynamicImport_tests.txt | 309 promise-then-ns-has-property-sym-not-found.js 310 promise-then-ns-get-sym-not-found.js 322 promise-then-ns-has-property-sym-found.js 336 promise-then-ns-get-sym-found.js 338 await-ns-get-sym-not-found.js 352 await-ns-has-property-sym-not-found.js 358 promise-then-ns-get-own-property-sym.js 361 await-ns-has-property-sym-found.js 362 await-ns-get-own-property-sym.js 369 await-ns-get-sym-found.js
|
D | module_tests.txt | 407 get-own-property-sym.js 414 get-sym-found.js 415 get-sym-not-found.js 419 has-property-sym-found.js 420 has-property-sym-not-found.js
|
D | es2021_tests.txt | 678 language/expressions/dynamic-import/namespace/await-ns-get-sym-found.js 692 language/expressions/dynamic-import/namespace/await-ns-has-property-sym-not-found.js 694 language/expressions/dynamic-import/namespace/promise-then-ns-has-property-sym-found.js 710 language/expressions/dynamic-import/namespace/promise-then-ns-has-property-sym-not-found.js 717 language/expressions/dynamic-import/namespace/await-ns-get-own-property-sym.js 729 language/expressions/dynamic-import/namespace/promise-then-ns-get-own-property-sym.js 738 language/expressions/dynamic-import/namespace/promise-then-ns-get-sym-found.js 744 language/expressions/dynamic-import/namespace/await-ns-get-sym-not-found.js 748 language/expressions/dynamic-import/namespace/await-ns-has-property-sym-found.js 749 language/expressions/dynamic-import/namespace/promise-then-ns-get-sym-not-found.js
|
D | es2015_tests.txt | 6555 language/module-code/namespace/internals/get-own-property-sym.js 6562 language/module-code/namespace/internals/get-sym-found.js 6563 language/module-code/namespace/internals/get-sym-not-found.js 6567 language/module-code/namespace/internals/has-property-sym-found.js 6568 language/module-code/namespace/internals/has-property-sym-not-found.js
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_symbol_test.cpp | 360 JSSymbol *sym = reinterpret_cast<JSSymbol *>(result.GetRawData()); in HWTEST_F_L0() local 361 ASSERT_EQ(sym->GetDescription().IsUndefined(), true); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 446 auto sym = panda::os::library_loader::ResolveSymbol(handle.Value(), "StartDebug"); in StartDebugger() local 447 if (!sym) { in StartDebugger() 448 LOG_ECMA(ERROR) << sym.Error().ToString(); in StartDebugger() 452 bool ret = reinterpret_cast<StartDebugger>(sym.Value())( in StartDebugger() 490 auto sym = panda::os::library_loader::ResolveSymbol(handle, "StopDebug"); in StopDebugger() local 491 if (!sym) { in StopDebugger() 492 LOG_ECMA(ERROR) << sym.Error().ToString(); in StopDebugger() 496 reinterpret_cast<StopDebug>(sym.Value())("PandaDebugger"); in StopDebugger()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | dump.cpp | 509 JSSymbol *sym = JSSymbol::Cast(key.GetTaggedObject()); in DumpPropertyKey() local 510 DumpStringClass(EcmaString::Cast(sym->GetDescription().GetTaggedObject()), os); in DumpPropertyKey() 4196 JSSymbol *sym = JSSymbol::Cast(key.GetTaggedObject()); in KeyToStd() local 4197 JSTaggedValue desc = sym->GetDescription(); in KeyToStd()
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | lib_ark_builtins.d.ts | 684 static keyFor(sym: symbol): string | undefined;
|
/arkcompiler/ets_frontend/testTs/ |
D | test-case.patch | 10712 +const sym = Symbol(); 10714 +function gg3(x: { [key: string]: string }, y: { [key: symbol]: string }, z: { [sym]: number }) { 10924 + [sym]: 4 as const, 10933 + [sym]: 4 as const, 11017 +const aa: AA = { [sym]: '123' }; 11019 +const obj1: { [key: symbol]: string } = { [sym]: 'hello '}; 11020 +const obj2: { [key: string]: string } = { [sym]: 'hello '}; // Permitted for backwards compatibil… 11021 +const obj3: { [key: number]: string } = { [sym]: 'hello '}; // Error
|
/arkcompiler/ets_frontend/es2panda/test/ |
D | test262skiplist.txt | 2845 language/expressions/dynamic-import/namespace/await-ns-get-own-property-sym.js 2848 language/expressions/dynamic-import/namespace/await-ns-get-sym-found.js 2849 language/expressions/dynamic-import/namespace/await-ns-get-sym-not-found.js 2852 language/expressions/dynamic-import/namespace/await-ns-has-property-sym-found.js 2853 language/expressions/dynamic-import/namespace/await-ns-has-property-sym-not-found.js 2875 language/expressions/dynamic-import/namespace/promise-then-ns-get-own-property-sym.js 2878 language/expressions/dynamic-import/namespace/promise-then-ns-get-sym-found.js 2879 language/expressions/dynamic-import/namespace/promise-then-ns-get-sym-not-found.js 2882 language/expressions/dynamic-import/namespace/promise-then-ns-has-property-sym-found.js 2883 language/expressions/dynamic-import/namespace/promise-then-ns-has-property-sym-not-found.js [all …]
|