Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DkeyRemappingKeyofResult.ts21 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 …]
DsymbolType16.ts25 let sym: symbol; variable
26 AssertType(sym, "symbol");
28 sym.newSymbolProp;
29 AssertType(sym.newSymbolProp, "number");
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_symbol.cpp87 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 …]
Dbuiltins_symbol.h47 static JSTaggedValue SymbolDescriptiveString(JSThread *thread, JSTaggedValue sym);
/arkcompiler/ets_frontend/arkguard/src/transformers/rename/
DRenameIdentifierTransformer.ts338 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/
Darray_primitives.ts20 let sym: symbol[]; variable
/arkcompiler/ets_frontend/ts2panda/tests/types/primitives/
Dprimitives_no_type_annotation.ts20 let sym = Symbol("mySym"); variable
Dprimitives_in_if.ts20 let sym: symbol = Symbol("mySym"); variable
Dprimitives_only_type_annotation.ts20 let sym: symbol; variable
Dprimitives_in_block.ts20 let sym: symbol = Symbol("mySym"); variable
Dprimitives_in_function.ts20 let sym: symbol = Symbol("mySym");
Dprimitives_in_class.ts21 sym: symbol = Symbol("mySym"); property in A
Dprimitives_in_for.ts20 let sym: symbol = Symbol("mySym"); variable
/arkcompiler/ets_runtime/test/typeinfer/builtins/
Dbuiltins.ts217 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/
DScopeAnalyzer.ts182 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/
DdynamicImport_tests.txt309 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
Dmodule_tests.txt407 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
Des2021_tests.txt678 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
Des2015_tests.txt6555 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/
Dbuiltins_symbol_test.cpp360 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/
Djsnapi.cpp446 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/
Ddump.cpp509 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/
Dlib_ark_builtins.d.ts684 static keyFor(sym: symbol): string | undefined;
/arkcompiler/ets_frontend/testTs/
Dtest-case.patch10712 +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/
Dtest262skiplist.txt2845 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 …]