| /arkcompiler/ets_frontend/ets2panda/linter-4.2/test/ |
| D | symbol_api.ts.relax.json | 22 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 29 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 36 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 43 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 50 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 57 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 64 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 71 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 78 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 85 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" [all …]
|
| D | symbol_api.ts.strict.json | 22 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 29 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 36 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 43 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 50 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 57 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 64 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 71 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 78 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 85 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" [all …]
|
| D | symbol_api.ts | 16 let a = Symbol.asyncIterator; 17 let b = Symbol.hasInstance; 18 let c = Symbol.isConcatSpreadable; 19 let d = Symbol.iterator; 20 let e = Symbol.match; 21 let f = Symbol.replace; 22 let g = Symbol.search; 23 let h = Symbol.species; 24 let i = Symbol.split; 25 let j = Symbol.toPrimitive; [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | symbol_api.ts.relax.json | 22 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 29 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 36 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 43 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 50 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 57 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 64 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 71 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 78 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 85 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" [all …]
|
| D | symbol_api.ts.strict.json | 22 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 29 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 36 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 43 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 50 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 57 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 64 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 71 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 78 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" 85 "rule": "\"Symbol()\" API is not supported (arkts-no-symbol)" [all …]
|
| D | symbol_api.ts | 16 let a = Symbol.asyncIterator; 17 let b = Symbol.hasInstance; 18 let c = Symbol.isConcatSpreadable; 19 let d = Symbol.iterator; 20 let e = Symbol.match; 21 let f = Symbol.replace; 22 let g = Symbol.search; 23 let h = Symbol.species; 24 let i = Symbol.split; 25 let j = Symbol.toPrimitive; [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/weakcollectionswithsymbol/ |
| D | weaksetsymbolvalue.js | 24 let sym1 = Symbol("symbol1"); 27 let sym2 = Symbol.for("symbol2"); 42 Symbol.asyncIterator, 43 Symbol.hasInstance, 44 Symbol.isConcatSpreadable, 45 Symbol.iterator, 46 Symbol.match, 47 Symbol.matchAll, 48 Symbol.replace, 49 Symbol.search, [all …]
|
| D | weakrefforsymbol.js | 24 let target1 = Symbol("symbol1"); 27 let target2 = Symbol.for("symbol2"); 37 Symbol.asyncIterator, 38 Symbol.hasInstance, 39 Symbol.isConcatSpreadable, 40 Symbol.iterator, 41 Symbol.match, 42 Symbol.matchAll, 43 Symbol.replace, 44 Symbol.search, [all …]
|
| D | weakmapsymbolkey.js | 26 let s1 = Symbol("symbol1"); 29 let s2 = Symbol.for("symbol2"); 46 Symbol.asyncIterator, 47 Symbol.hasInstance, 48 Symbol.isConcatSpreadable, 49 Symbol.iterator, 50 Symbol.match, 51 Symbol.matchAll, 52 Symbol.replace, 53 Symbol.search, [all …]
|
| D | finalizationregistrywithsymbol.js | 28 let s = Symbol("symbol"); 29 let ss = Symbol("symbol"); 30 fr.register(s, "symbol 1", Symbol.match); 31 fr.register(ss, "symbol 2", Symbol.matchAll); 34 fr.register(Symbol.for("symbol2"), "symbol 2"); 39 fr.unregister(Symbol.match);
|
| /arkcompiler/toolchain/tooling/test/testcases/js/ |
| D | variable_second.js | 46 var iterator0 = string0[Symbol.iterator]; 86 var iterator1 = array0[Symbol.iterator]; 87 var iterator2 = map0[Symbol.iterator]; 88 var iterator3 = set0[Symbol.iterator]; 89 var iterator4 = uint8array0[Symbol.iterator]; 91 var iterator6 = typedarray0[Symbol.iterator]; 92 var iterator7 = typedarray1[Symbol.iterator]; 93 var iterator8 = typedarray2[Symbol.iterator]; 94 var iterator9 = typedarray3[Symbol.iterator]; 95 var iterator10 = typedarray4[Symbol.iterator]; [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_symbol_test.cpp | 37 using Symbol = ecmascript::builtins::BuiltinsSymbol; typedef 67 // new Symbol.toString() 72 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewJSSymbol(); in HWTEST_F_L0() local 76 ecmaRuntimeCallInfo->SetThis(symbol.GetTaggedValue()); in HWTEST_F_L0() 79 JSTaggedValue result = Symbol::ToString(ecmaRuntimeCallInfo); in HWTEST_F_L0() 84 auto symbolValue = ecmaVM->GetFactory()->NewFromASCII("Symbol()"); in HWTEST_F_L0() 93 result = Symbol::ToString(ecmaRuntimeCallInfo); in HWTEST_F_L0() 99 // No Symbol data in HWTEST_F_L0() 107 result = Symbol::ToString(ecmaRuntimeCallInfo); in HWTEST_F_L0() 114 // new Symbol("aaa").toString() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_symbol.cpp | 34 BUILTINS_API_TRACE(argv->GetThread(), Symbol, Constructor); in SymbolConstructor() 54 // 5.Return a new unique Symbol value whose [[Description]] value is descString. in SymbolConstructor() 59 // 19.4.3.2 Symbol.prototype.toString() 63 BUILTINS_API_TRACE(argv->GetThread(), Symbol, ToString); in ToString() 68 // 1.If value is a Symbol, return value. in ToString() 89 BUILTINS_API_TRACE(thread, Symbol, SymbolDescriptiveString); in SymbolDescriptiveString() 90 // Assert: Type(sym) is Symbol. in SymbolDescriptiveString() 101 JSHandle<EcmaString> leftHandle(factory->NewFromASCII("Symbol(")); in SymbolDescriptiveString() 108 // Return the result of concatenating the strings "Symbol(", desc, and ")". in SymbolDescriptiveString() 109 JSHandle<EcmaString> leftHandle(factory->NewFromASCII("Symbol(")); in SymbolDescriptiveString() [all …]
|
| D | builtins_symbol.h | 45 // List of functions in Symbol, excluding the '@@' properties. 47 // where BuiltinsSymbol::func refers to the native implementation of Symbol[name]. 53 // List of get accessors in Symbol.prototype, excluding the '@@' properties. 55 // where BuiltinsSymbol::func refers to the native implementation of Symbol.prototype[name]. 71 // 19.4.2.1 Symbol.for (key) 73 // 19.4.2.5 Symbol.keyFor (sym) 76 // 19.4.3.2 get Symbol.prototype.description
|
| /arkcompiler/ets_frontend/ets2panda/linter/src/utils/ |
| D | TsUtils.ts | 159 return tsType.symbol && (tsType.symbol.flags & ts.SymbolFlags.Enum) !== 0; 165 return tsType.symbol && (tsType.symbol.flags & ts.SymbolFlags.EnumMember) !== 0; 169 return tsType.symbol && (tsType.symbol.flags & ts.SymbolFlags.ObjectLiteral) !== 0; 195 public followIfAliased(sym: ts.Symbol): ts.Symbol { 202 private trueSymbolAtLocationCache = new Map<ts.Node, ts.Symbol | null>(); 204 public trueSymbolAtLocation(node: ts.Node): ts.Symbol | undefined { 228 public symbolHasDuplicateName(symbol: ts.Symbol, tsDeclKind: ts.SyntaxKind): boolean { 229 // Type Checker merges all declarations with the same name in one scope into one symbol. 230 // Thus, check whether the symbol of certain declaration has any declaration with 232 const symbolDecls = symbol?.getDeclarations(); [all …]
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/src/ |
| D | Utils.ts | 178 'Symbol', 221 ['Symbol', {arr: TsUtils.LIMITED_STD_SYMBOL_API, fault: FaultID.SymbolType}], 274 "lib.es2015.symbol.d.ts", "lib.es2015.symbol.wellknown.d.ts", "lib.es2016.array.include.d.ts", 278 …"lib.es2019.object.d.ts", "lib.es2019.string.d.ts", "lib.es2019.symbol.d.ts", "lib.es2019.intl.d.t… 280 …"lib.es2020.string.d.ts", "lib.es2020.symbol.wellknown.d.ts", "lib.es2020.intl.d.ts", "lib.es2020.… 426 return tsType.symbol && (tsType.symbol.flags & ts.SymbolFlags.Enum) !== 0; 432 return tsType.symbol && (tsType.symbol.flags & ts.SymbolFlags.EnumMember) !== 0; 436 return tsType.symbol && (tsType.symbol.flags & ts.SymbolFlags.ObjectLiteral) !== 0; 462 public followIfAliased(sym: ts.Symbol): ts.Symbol { 469 private trueSymbolAtLocationCache = new Map<ts.Node, ts.Symbol | null>(); [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/symbol/ |
| D | symbol.js | 17 * @tc.name:Symbol 18 * @tc.desc:test Symbol 23 const p = Symbol.prototype; 27 print("test Symbol.prototype.toString successful !!!"); 33 print("test Symbol.prototype.valueOf successful !!!"); 35 print(JSON.stringify(Array.prototype[Symbol.unscopables]));
|
| /arkcompiler/ets_frontend/ets2panda/linter-4.2/docs/rules/ |
| D | recipe2.md | 1 # ``Symbol()`` API is not supported 3 Rule ``arkts-no-symbol`` 7 TypeScript has ``Symbol()`` API, which can be used among other things to generate 8 unique property names at runtime. ArkTS does not support ``Symbol()`` API 13 ``Symbol.iterator`` and iterable interfaces are supported in ArkTS. 21 const sym = Symbol()
|
| /arkcompiler/ets_frontend/ets2panda/linter/docs/rules/ |
| D | recipe2.md | 1 # ``Symbol()`` API is not supported 3 Rule ``arkts-no-symbol`` 7 TypeScript has ``Symbol()`` API, which can be used among other things to generate 8 unique property names at runtime. ArkTS does not support ``Symbol()`` API 13 ``Symbol.iterator`` and iterable interfaces are supported in ArkTS. 21 const sym = Symbol()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/ |
| D | elf_types.h | 59 #define SHN_COMMON 0xfff2 /* Associated symbol is common */ 62 #define SHT_SYMTAB 2 /* Symbol table */ 66 #define STB_LOCAL 0 /* Local symbol */ 67 #define STB_GLOBAL 1 /* Global symbol */ 68 #define STB_WEAK 2 /* Weak symbol */ 69 #define STT_NOTYPE 0 /* Symbol type is unspecified */ 70 #define STT_OBJECT 1 /* Symbol is a data object */ 71 #define STT_FUNC 2 /* Symbol is a code object */ 72 #define STT_SECTION 3 /* Symbol associated with a section */ 112 uint32_t st_name; /* Symbol name, index in string tbl */ [all …]
|
| /arkcompiler/toolchain/inspector/ |
| D | library_loader.cpp | 48 void* ResolveSymbol(void* handle, std::string_view symbol) in ResolveSymbol() argument 51 void* addr = reinterpret_cast<void*>(GetProcAddress(module, symbol.data())); in ResolveSymbol() 55 LOGE("Failed to get symbol:%{public}s, reason:%{public}s", symbol.data(), in ResolveSymbol() 77 void* ResolveSymbol(void* handle, std::string_view symbol) 79 void* addr = dlsym(handle, symbol.data()); 83 LOGE("Failed to get symbol:%{public}s, reason:%{public}sn", symbol.data(), dlerror());
|
| /arkcompiler/ets_frontend/arkguard/src/utils/ |
| D | ScopeAnalyzer.ts | 51 Symbol, 142 defs: Set<Symbol>; 170 * add definition symbol into current scope 172 * @param def definition symbol 174 addDefinition(def: Symbol, obfuscateAsProperty?: boolean): void; 184 * get symbol location 186 * @param sym symbol 188 getSymbolLocation(sym: Symbol): string; 211 let defs: Set<Symbol> = new Set<Symbol>(); 255 function addDefinition(def: Symbol, obfuscateAsProperty: boolean = false): void { [all …]
|
| /arkcompiler/ets_frontend/test262/ |
| D | es2023_tests.txt | 9 built-ins/Array/prototype/findLast/return-abrupt-from-this-length-as-symbol.js 65 built-ins/Array/prototype/findLastIndex/return-abrupt-from-this-length-as-symbol.js 250 built-ins/FinalizationRegistry/prototype/register/return-undefined-register-symbol.js 251 built-ins/FinalizationRegistry/prototype/unregister/unregister-symbol-token.js 252 built-ins/WeakMap/iterable-with-symbol-keys.js 253 built-ins/WeakMap/prototype/delete/delete-entry-with-symbol-key-initial-iterable.js 254 built-ins/WeakMap/prototype/delete/delete-entry-with-symbol-key.js 255 built-ins/WeakMap/prototype/delete/returns-false-when-symbol-key-not-present.js 256 built-ins/WeakMap/prototype/get/returns-undefined-with-symbol-key.js 257 built-ins/WeakMap/prototype/get/returns-value-with-symbol-key.js [all …]
|
| /arkcompiler/ets_frontend/arkguard/test/grammar/function_usage/ |
| D | symbol_definition.ts | 18 let sym1 = Symbol('symbol1'); 20 let sym2 = Symbol('symbol1'); 24 let sym3 = Symbol.for('symbol2'); 26 let sym4 = Symbol.for('symbol2');
|
| /arkcompiler/ets_frontend/ets2panda/linter/src/utils/functions/ |
| D | IsStruct.ts | 19 export function isStruct(symbol: ts.Symbol) { 20 if (!symbol.declarations) { 23 for (const decl of symbol.declarations) {
|