Home
last modified time | relevance | path

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

1234

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DinferStringLiteralUnionForBindingElement.ts21 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 …]
DgenericIndexedAccessMethodIntersectionCanBeAccessed.ts34 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[]");
DnoObjectKeysToKeyofT.ts23 Object.keys({ a: 0 }).push("b");
24 AssertType(Object.keys({ a: 0 }).push("b"), "number");
25 AssertType(Object.keys({ a: 0 }).push, "(...string[]) => number");
DpartialOfLargeAPIIsAbleToBeWorkedWith.ts80 declare let keys: (keyof MyAPI)[]; variable
81 AssertType(keys, "(keyof MyAPI)[]");
83 for (const k of keys) {
99 for (const k of keys) {
DliteralTypeWidening.ts340 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 …]
DcontextualExpressionTypecheckingDoesntBlowStack.ts33 for(const parameterLocation of Object.keys(parameterValues)) {
35 AssertType(Object.keys(parameterValues), "string[]");
36 AssertType(Object.keys, "{ (object): string[]; ({}): string[]; }");
DmodularizeLibrary_TargetES6UsingES6Lib.ts47 m.keys();
48 AssertType(m.keys(), "IterableIterator<string>");
49 AssertType(m.keys, "() => IterableIterator<string>");
DtypeGuardOfFormTypeOfFunction.ts145 function f100<T, K extends keyof T>(obj: T, keys: K[]) : void {
146 for (const k of keys) {
148 AssertType(keys, "K[]");
DdeclarationEmitIndexTypeArray.ts21 function doSomethingWithKeys<T>(...keys: (keyof T)[]) { }
DthisCapture1.ts23 public getSettings(keys: string[]): any {
/arkcompiler/ets_frontend/es2panda/lexer/scripts/
Dkeywords.rb183 def collect_functions(functions, keys) argument
189 keys.each do |key|
216 collect_functions(functions, group.keys)
/arkcompiler/runtime_core/bytecode_optimizer/tests/benchmark/
Drun_benchmark.py78 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/
Dbuiltins_api.ts25 print("Object.keys():", Object.keys(this));
34 print("Object.keys():", Object.keys(this));
Dexpect_output.txt17 Object.keys():
25 Object.keys(): b
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dclass_info_extractor.h51 JSHandle<TaggedArray> &keys,
55 JSHandle<TaggedArray> &keys,
87 … JSHandle<TaggedArray> &keys, JSHandle<TaggedArray> &properties,
108 JSHandle<TaggedArray> &keys,
Dclass_info_extractor.cpp103 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/
DkeywordsMap.h.erb30 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/
Dcontainers_lightweightmap_stub_builder.h39 GateRef keys = Load(VariableType::JS_POINTER(), obj, keysOffset); in GetKey() local
40 return GetValueFromTaggedArray(keys, index); in GetKey()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_proxy_test.cpp120 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/
Dspreadoperator.js23 var arr1 = [...Array(16).keys()];
39 var arr4 = [...set1.keys()];
53 var arr6 = [...map1.keys()];
/arkcompiler/ets_frontend/arkguard/test/grammar/array_validation/
Darray_keys.ts20 let key = arr.keys();
/arkcompiler/runtime_core/tests/cts-coverage-tool/lib/
Dsummary.rb138 def except(hash, keys) argument
140 keys.each { |key| x.delete(key) }
/arkcompiler/ets_runtime/test/aottest/createemptyobject/
Dcreateemptyobject.ts19 var keyNums = Object.keys(empObj).length;
/arkcompiler/ets_runtime/test/moduletest/objectentries/
Dobjectentries.js28 print(Object.keys(obj));
/arkcompiler/runtime_core/libpandabase/templates/
Dlogger_gen.rb44 name = plugins.keys.first

1234