/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | inferStringLiteralUnionForBindingElement.ts | 21 declare function func<T extends string>(arg: { keys: T[] }): { readonly keys: T[]; readonly firstKe… 24 const { firstKey } = func({keys: ["aa", "bb"]}) 26 AssertType(func({keys: ["aa", "bb"]}), "{ readonly keys: (union)[]; readonly firstKey: union; }"); 28 AssertType({keys: ["aa", "bb"]}, "{ keys: (union)[]; }"); 29 AssertType(keys, "(union)[]"); 38 const { keys } = func({keys: ["aa", "bb"]}) constant 39 AssertType(keys, "(union)[]"); 40 AssertType(func({keys: ["aa", "bb"]}), "{ readonly keys: (union)[]; readonly firstKey: union; }"); 42 AssertType({keys: ["aa", "bb"]}, "{ keys: (union)[]; }"); 43 AssertType(keys, "(union)[]"); [all …]
|
D | genericIndexedAccessMethodIntersectionCanBeAccessed.ts | 34 AssertType(<T>( ServiceCtr: ExtendedService<T> & Service<T>) => { Object.keys(ServiceCtr).for… 40 Object.keys(ServiceCtr).forEach(key => { 41 AssertType(Object.keys(ServiceCtr).forEach(key => { const method = (ServiceCtr)[key as keyof… 42 AssertType(Object.keys(ServiceCtr).forEach, "((string, number, string[]) => void, ?any) => void"); 43 AssertType(Object.keys(ServiceCtr), "string[]"); 44 AssertType(Object.keys, "(object) => string[]");
|
D | noObjectKeysToKeyofT.ts | 23 Object.keys({ a: 0 }).push("b"); 24 AssertType(Object.keys({ a: 0 }).push("b"), "number"); 25 AssertType(Object.keys({ a: 0 }).push, "(...string[]) => number");
|
D | partialOfLargeAPIIsAbleToBeWorkedWith.ts | 80 declare let keys: (keyof MyAPI)[]; variable 81 AssertType(keys, "(keyof MyAPI)[]"); 83 for (const k of keys) { 99 for (const k of keys) {
|
D | literalTypeWidening.ts | 340 export function Set<K extends string>(...keys: K[]): Record<K, true | undefined> { 347 keys.forEach(key => result[key] = true) 348 AssertType(keys.forEach(key => result[key] = true), "void"); 349 AssertType(keys.forEach, "((K, number, K[]) => void, ?any) => void"); 362 export function keys<K extends string, V>(obj: Record<K, V>): K[] { function 363 AssertType(Object.keys(obj) as K[], "K[]"); 364 AssertType(Object.keys(obj), "string[]"); 365 AssertType(Object.keys, "(object) => string[]"); 367 return Object.keys(obj) as K[] 383 export const langCodes = keys(langCodeSet) [all …]
|
D | contextualExpressionTypecheckingDoesntBlowStack.ts | 33 for(const parameterLocation of Object.keys(parameterValues)) { 35 AssertType(Object.keys(parameterValues), "string[]"); 36 AssertType(Object.keys, "{ (object): string[]; ({}): string[]; }");
|
D | modularizeLibrary_TargetES6UsingES6Lib.ts | 47 m.keys(); 48 AssertType(m.keys(), "IterableIterator<string>"); 49 AssertType(m.keys, "() => IterableIterator<string>");
|
D | typeGuardOfFormTypeOfFunction.ts | 145 function f100<T, K extends keyof T>(obj: T, keys: K[]) : void { 146 for (const k of keys) { 148 AssertType(keys, "K[]");
|
D | declarationEmitIndexTypeArray.ts | 21 function doSomethingWithKeys<T>(...keys: (keyof T)[]) { }
|
D | thisCapture1.ts | 23 public getSettings(keys: string[]): any {
|
/arkcompiler/ets_frontend/es2panda/lexer/scripts/ |
D | keywords.rb | 183 def collect_functions(functions, keys) argument 189 keys.each do |key| 216 collect_functions(functions, group.keys)
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/ |
D | run_benchmark.py | 78 keys = sizes[0].keys() 79 avgs = dict.fromkeys(keys, 0) 80 mins = dict.fromkeys(keys, 99999999) 81 maxs = dict.fromkeys(keys, 0) 83 for k in keys:
|
/arkcompiler/ets_runtime/test/aottest/aot_compatibility_test/builtins_api/ |
D | builtins_api.ts | 25 print("Object.keys():", Object.keys(this)); 34 print("Object.keys():", Object.keys(this));
|
D | expect_output.txt | 17 Object.keys(): 25 Object.keys(): b
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | class_info_extractor.h | 51 JSHandle<TaggedArray> &keys, 55 JSHandle<TaggedArray> &keys, 87 … JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties, 108 JSHandle<TaggedArray> &keys,
|
D | class_info_extractor.cpp | 103 JSHandle<TaggedArray> &keys, in ExtractAndReturnWhetherWithElements() argument 110 ASSERT(keys->GetLength() == properties->GetLength() && elements->GetLength() == 0); in ExtractAndReturnWhetherWithElements() 146 keys->Set(thread, pos, firstValue); in ExtractAndReturnWhetherWithElements() 161 uint32_t trimOneLength = keys->GetLength() - 1; in ExtractAndReturnWhetherWithElements() 162 keys->Trim(thread, trimOneLength); in ExtractAndReturnWhetherWithElements() 169 keys->Trim(thread, pos); in ExtractAndReturnWhetherWithElements() 177 JSHandle<TaggedArray> &keys, in CreatePrototypeHClass() argument 182 uint32_t length = keys->GetLength(); in CreatePrototypeHClass() 192 key.Update(keys->Get(index)); in CreatePrototypeHClass() 223 JSHandle<TaggedArray> &keys, in CreateConstructorHClass() argument [all …]
|
/arkcompiler/ets_frontend/es2panda/lexer/templates/ |
D | keywordsMap.h.erb | 30 case LEX_CHAR_LOWERCASE_<%= group.keys[0][0].upcase %>: { 31 return Span<const KeywordString>(KEYWORDS_<%= group.keys[0][0].upcase %>); 42 …static constexpr std::array<const KeywordString, <%= group.size %>> KEYWORDS_<%= group.keys[0][0].…
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | containers_lightweightmap_stub_builder.h | 39 GateRef keys = Load(VariableType::JS_POINTER(), obj, keysOffset); in GetKey() local 40 return GetValueFromTaggedArray(keys, index); in GetKey()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_proxy_test.cpp | 120 JSHandle<TaggedArray> keys = JSObject::GetOwnPropertyKeys(thread, resultHandle); in HWTEST_F_L0() local 123 for (uint32_t i = 0; i < keys->GetLength(); i++) { in HWTEST_F_L0() 124 if (JSTaggedValue::SameValue(keys->Get(i), proxyKey.GetTaggedValue())) { in HWTEST_F_L0() 127 if (JSTaggedValue::SameValue(keys->Get(i), revokeKey.GetTaggedValue())) { in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/moduletest/spreadoperator/ |
D | spreadoperator.js | 23 var arr1 = [...Array(16).keys()]; 39 var arr4 = [...set1.keys()]; 53 var arr6 = [...map1.keys()];
|
/arkcompiler/ets_frontend/arkguard/test/grammar/array_validation/ |
D | array_keys.ts | 20 let key = arr.keys();
|
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/ |
D | summary.rb | 138 def except(hash, keys) argument 140 keys.each { |key| x.delete(key) }
|
/arkcompiler/ets_runtime/test/aottest/createemptyobject/ |
D | createemptyobject.ts | 19 var keyNums = Object.keys(empObj).length;
|
/arkcompiler/ets_runtime/test/moduletest/objectentries/ |
D | objectentries.js | 28 print(Object.keys(obj));
|
/arkcompiler/runtime_core/libpandabase/templates/ |
D | logger_gen.rb | 44 name = plugins.keys.first
|