| /arkcompiler/ets_frontend/ets2panda/linter/test/ |
| D | symbol_api.sts | 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 …]
|
| D | symbol_api.ts.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 …]
|
| /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/ets_frontend/ets2panda/linter/lib/autofixes/ |
| D | SymbolCache.ts | 35 const symbol = this.handlersMap.get(node.kind)?.call(this, node); 36 if (symbol !== undefined) { 37 this.addReference(symbol, node); 48 getReferences(symbol: ts.Symbol): ts.Node[] { 49 return this.cache.get(symbol) ?? []; 52 private handleElementAccessExpression(node: ts.Node): ts.Symbol | undefined { 57 private handleEnumDeclaration(node: ts.Node): ts.Symbol | undefined { 62 private handlePrivateIdentifier(node: ts.Node): ts.Symbol | undefined { 67 private handlePropertyAssignment(node: ts.Node): ts.Symbol | undefined { 73 private handlePropertyDeclaration(node: ts.Node): ts.Symbol | undefined { [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_symbol_test.cpp | 37 using Symbol = ecmascript::builtins::BuiltinsSymbol; typedef 66 result = Symbol::ToString(ecmaRuntimeCallInfos); in SymbolAlgorithm() 69 result = Symbol::ValueOf(ecmaRuntimeCallInfos); in SymbolAlgorithm() 72 result = Symbol::KeyFor(ecmaRuntimeCallInfos); in SymbolAlgorithm() 93 // new Symbol.toString() 98 JSHandle<JSSymbol> symbol = ecmaVM->GetFactory()->NewJSSymbol(); in HWTEST_F_L0() local 101 … auto result = SymbolAlgorithm(thread, symbol.GetTaggedValue(), args, 4, AlgorithmType::TO_STRING); in HWTEST_F_L0() 105 auto symbolValue = ecmaVM->GetFactory()->NewFromASCII("Symbol()"); in HWTEST_F_L0() 115 // No Symbol data in HWTEST_F_L0() 124 // new Symbol("aaa").toString() [all …]
|
| /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/tools/ap_file_viewer/src/base-ui/ |
| D | icon.svg | 3 <symbol id="icon-minus-square" viewBox="0 0 16 16"> 10 </symbol> 11 <symbol id="icon-plus-square" viewBox="0 0 16 16"> 19 </symbol> 20 <symbol id="icon-folder" viewBox="0 0 16 16"> 27 </symbol> 28 <symbol id="icon-select" viewBox="0 0 16 16"> 40 </symbol> 41 <symbol id="icon-down" viewBox="0 0 16 16"> 49 </symbol> [all …]
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_symbol.cpp | 29 BUILTINS_API_TRACE(argv->GetThread(), Symbol, Constructor); in SymbolConstructor() 49 // 5.Return a new unique Symbol value whose [[Description]] value is descString. in SymbolConstructor() 54 // 19.4.3.2 Symbol.prototype.toString() 58 BUILTINS_API_TRACE(argv->GetThread(), Symbol, ToString); in ToString() 63 // 1.If value is a Symbol, return value. in ToString() 84 BUILTINS_API_TRACE(thread, Symbol, SymbolDescriptiveString); in SymbolDescriptiveString() 85 // Assert: Type(sym) is Symbol. in SymbolDescriptiveString() 96 JSHandle<EcmaString> leftHandle(factory->NewFromASCII("Symbol(")); in SymbolDescriptiveString() 103 // Return the result of concatenating the strings "Symbol(", desc, and ")". in SymbolDescriptiveString() 104 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_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/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/arkguard/src/utils/ |
| D | ScopeAnalyzer.ts | 59 Symbol, 139 defs: Set<Symbol>; 158 this.defs = new Set<Symbol>(); 178 * add definition symbol into current scope 180 * @param def definition symbol 182 addDefinition(def: Symbol, obfuscateAsProperty: boolean = false): void { 199 * get symbol location 201 * @param sym symbol 203 getSymbolLocation(sym: Symbol): string { 316 defSymbols.forEach((def: Symbol) => { [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/typedarrayfrom/ |
| D | typedarrayfrom.js | 23 let it = int8Arr[Symbol.iterator](); 33 let it = int8Arr[Symbol.iterator](); 34 it.__proto__["next"] = new Map()[Symbol.iterator]().__proto__["next"]; 42 int8Arr.__proto__.__proto__[Symbol.iterator] = function* () { 50 int8Arr.__proto__.__proto__[Symbol.iterator] = function() { 58 it = int8Arr[Symbol.iterator](); 63 it = arr[Symbol.iterator](); 72 v1[Symbol.iterator] = 1;
|
| /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/ets_frontend/ets2panda/linter/lib/utils/ |
| D | TsUtils.ts | 42 export const SYMBOL = 'Symbol'; constant 111 // when type equals `typeof <Enum>`, only symbol contains information about it's type. 112 const isEnumSymbol = tsType.symbol && this.isEnum(tsType.symbol); 118 static isEnum(tsSymbol: ts.Symbol): boolean { 145 followIfAliased(sym: ts.Symbol): ts.Symbol { 152 private readonly trueSymbolAtLocationCache = new Map<ts.Node, ts.Symbol | null>(); 154 trueSymbolAtLocation(node: ts.Node): ts.Symbol | undefined { 180 static symbolHasDuplicateName(symbol: ts.Symbol, tsDeclKind: ts.SyntaxKind): boolean { 183 * Type Checker merges all declarations with the same name in one scope into one symbol. 184 * Thus, check whether the symbol of certain declaration has any declaration with [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/test/ut/utils/ |
| D | ScopeAnalyzer.spec.ts | 36 import { ScriptTarget, SourceFile, createSourceFile, isSourceFile, Symbol, __String, Declaration, J… 159 it('should add definition symbol to the current scope', function () { 161 let symbol: Symbol = Object(Symbol('testSymbol')); variable 163 curScope.addDefinition(symbol, false); 164 assert.isTrue(curScope.defs.has(symbol)); 167 it('should mark symbol as obfuscateAsProperty if required', function () { 169 let symbol: Symbol = Object(Symbol('testSymbol')); variable 171 curScope.addDefinition(symbol, true); 172 assert.isTrue(Reflect.get(symbol, 'obfuscateAsProperty')); 187 it('should return the correct location if symbol exists', function () { [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/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_runtime/ecmascript/ |
| D | property_detector.h | 47 V(ReplaceSymbol, "Symbol.replace", replace ) \ 48 V(SplitSymbol, "Symbol.split", split ) \ 49 V(MatchAllSymbol, "Symbol.matchAll", matchAll) \ 50 V(IteratorSymbol, "Symbol.iterator", iterator) \ 51 V(SpeciesSymbol, "Symbol.species", species)
|
| /arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
| D | test-indexSignature1.ts | 17 type a = symbol; 26 [k3: symbol]: boolean; 35 [k1: string | number | symbol | `templateLiteral-${string}`]: boolean; 38 const x: { [k: string | number | symbol | `templateLiteral-${string}`]: boolean } = {};
|
| /arkcompiler/ets_frontend/ets2panda/linter/lib/utils/functions/ |
| D | IsStruct.ts | 19 export function isStruct(symbol: ts.Symbol): boolean { 20 if (!symbol.declarations) { 23 for (const decl of symbol.declarations) {
|