Home
last modified time | relevance | path

Searched full:has (Results 1 – 25 of 1475) sorted by relevance

12345678910>>...59

/arkcompiler/ets_runtime/test/aottest/builtin_inlining/map/Has/
DbuiltinMapHas.ts26 return myMap.has(x);
39 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
40 print(myMap.has()); //: false
44 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
45 print(myMap.has()); //: true
48 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
49 print(myMap.has(0)); //: true
50 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
51 print(myMap.has(3)); //: false
52 //aot: [trace] aot inline builtin: Map.has, caller function name:func_main_0@builtinMapHas
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dsendable_class_interface_property.ts.json399 …"suggest": "Property 'prop1' has no initializer and is not definitely assigned in the constructor.…
400 … "rule": "Property 'prop1' has no initializer and is not definitely assigned in the constructor."
406 …"suggest": "Property 'prop2' has no initializer and is not definitely assigned in the constructor.…
407 … "rule": "Property 'prop2' has no initializer and is not definitely assigned in the constructor."
413 …"suggest": "Property 'prop3' has no initializer and is not definitely assigned in the constructor.…
414 … "rule": "Property 'prop3' has no initializer and is not definitely assigned in the constructor."
420 …"suggest": "Property 'prop4' has no initializer and is not definitely assigned in the constructor.…
421 … "rule": "Property 'prop4' has no initializer and is not definitely assigned in the constructor."
427 …"suggest": "Property 'prop5' has no initializer and is not definitely assigned in the constructor.…
428 … "rule": "Property 'prop5' has no initializer and is not definitely assigned in the constructor."
[all …]
Darkui_decorators.ts.json126 …"suggest": "Property 'name' has no initializer and is not definitely assigned in the constructor.",
127 … "rule": "Property 'name' has no initializer and is not definitely assigned in the constructor."
133 … "suggest": "Property 'age' has no initializer and is not definitely assigned in the constructor.",
134 … "rule": "Property 'age' has no initializer and is not definitely assigned in the constructor."
140 …"suggest": "Property 'localStorage' has no initializer and is not definitely assigned in the const…
141 …"rule": "Property 'localStorage' has no initializer and is not definitely assigned in the construc…
147 …"suggest": "Property 'provide' has no initializer and is not definitely assigned in the constructo…
148 … "rule": "Property 'provide' has no initializer and is not definitely assigned in the constructor."
154 …"suggest": "Property 'state' has no initializer and is not definitely assigned in the constructor.…
155 … "rule": "Property 'state' has no initializer and is not definitely assigned in the constructor."
[all …]
Dobject_literals_prop_func_type.ts.autofix.json28 … "suggest": "Property 'a' has no initializer and is not definitely assigned in the constructor.",
29 … "rule": "Property 'a' has no initializer and is not definitely assigned in the constructor."
35 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
36 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor."
42 … "suggest": "Property 'c' has no initializer and is not definitely assigned in the constructor.",
43 … "rule": "Property 'c' has no initializer and is not definitely assigned in the constructor."
49 … "suggest": "Property 'd' has no initializer and is not definitely assigned in the constructor.",
50 … "rule": "Property 'd' has no initializer and is not definitely assigned in the constructor."
Dobject_literals_2.ts.autofix.json103 … "suggest": "Property 'b' has no initializer and is not definitely assigned in the constructor.",
104 … "rule": "Property 'b' has no initializer and is not definitely assigned in the constructor."
110 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
111 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor."
117 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
118 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor."
124 … "suggest": "Property 'x' has no initializer and is not definitely assigned in the constructor.",
125 … "rule": "Property 'x' has no initializer and is not definitely assigned in the constructor."
131 … "suggest": "Property 'y' has no initializer and is not definitely assigned in the constructor.",
132 … "rule": "Property 'y' has no initializer and is not definitely assigned in the constructor."
[all …]
Dnon_initializable_prop_decorators.ts.json70 … "suggest": "Property 'pr' has no initializer and is not definitely assigned in the constructor.",
71 … "rule": "Property 'pr' has no initializer and is not definitely assigned in the constructor."
77 … "suggest": "Property 'pr2' has no initializer and is not definitely assigned in the constructor.",
78 … "rule": "Property 'pr2' has no initializer and is not definitely assigned in the constructor."
84 … "suggest": "Property 'f2' has no initializer and is not definitely assigned in the constructor.",
85 … "rule": "Property 'f2' has no initializer and is not definitely assigned in the constructor."
91 …"suggest": "Property 'controller' has no initializer and is not definitely assigned in the constru…
92 …"rule": "Property 'controller' has no initializer and is not definitely assigned in the constructo…
Dstructural_identity_constructor.ts.json28 … "suggest": "Property 'f' has no initializer and is not definitely assigned in the constructor.",
29 "rule": "Property 'f' has no initializer and is not definitely assigned in the constructor."
35 … "suggest": "Property 'f' has no initializer and is not definitely assigned in the constructor.",
36 "rule": "Property 'f' has no initializer and is not definitely assigned in the constructor."
42 … "suggest": "Property 'foo' has no initializer and is not definitely assigned in the constructor.",
43 "rule": "Property 'foo' has no initializer and is not definitely assigned in the constructor."
Dprivate_identifiers.ts.json378 … "suggest": "Property '#p' has no initializer and is not definitely assigned in the constructor.",
379 … "rule": "Property '#p' has no initializer and is not definitely assigned in the constructor."
385 … "suggest": "Property 'p2' has no initializer and is not definitely assigned in the constructor.",
386 … "rule": "Property 'p2' has no initializer and is not definitely assigned in the constructor."
392 … "suggest": "Property '#p2' has no initializer and is not definitely assigned in the constructor.",
393 … "rule": "Property '#p2' has no initializer and is not definitely assigned in the constructor."
399 … "suggest": "Property 'm3' has no initializer and is not definitely assigned in the constructor.",
400 … "rule": "Property 'm3' has no initializer and is not definitely assigned in the constructor."
406 … "suggest": "Property '#a' has no initializer and is not definitely assigned in the constructor.",
407 … "rule": "Property '#a' has no initializer and is not definitely assigned in the constructor."
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Has/
DbuiltinSetHas.ts26 return mySet.has(x);
39 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
40 print(mySet.has()); //: false
45 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
46 print(mySet.has()); //: true
49 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
50 print(mySet.has(0)); //: true
51 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
52 print(mySet.has(3)); //: false
53 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetHas
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DReflectHas.sts18 // has
19 failures += test(reflectHas(), "Reflect.has");
71 result += (Reflect.has(arr, 0) == true) ? 0 : 1
72 result += (Reflect.has(arr, 3) == false) ? 0 : 1
73 result += (Reflect.has(arr, "length") == true) ? 0 : 1
74 result += (Reflect.has(arr, "qwerty") == false) ? 0 : 1
75 result += (Reflect.has(arr, "toString") == true) ? 0 : 1
76 result += (Reflect.has(arr, "toLocaleString") == true) ? 0 : 1
77 result += (Reflect.has(arr, "keys") == false) ? 0 : 1
79 result += (Reflect.has(str, 0) == true) ? 0 : 1
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/containers/
DTrivialSetTest.sts23 assert s.has(1) : "has 1"
24 assert s.has(2) : "has 2"
25 assert s.has(3) : "has 3"
60 assert s.has(badHash0) : "has 0"
61 assert s.has(badHash1) : "has 1"
62 assert s.has(badHash5) : "has 5"
63 assert s.has(badHash30) : "has 30"
65 assert !s.has(new BadHash(29)) : "!has 29"
69 assert !s.has(new BadHash(0)) : "!has 0"
78 assert !s.has(b)
[all …]
DTrivialMapTest.sts23 assert s.has(1) : "has 1"
24 assert s.has(2) : "has 2"
25 assert s.has(3) : "has 3"
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Add/
DbuiltinSetAdd.ts51 print(mySet.has(undefined));
52 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
60 print(mySet.has(125));
61 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
69 print(mySet.has(0));
70 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
78 print(mySet.has(0));
79 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
86 print(mySet.has("abc"));
87 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
[all …]
DbuiltinSetAdd copy.ts51 print(mySet.has(undefined));
52 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
60 print(mySet.has(125));
61 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
69 print(mySet.has(0));
70 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
78 print(mySet.has(0));
79 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
94 print(mySet.has(15));
95 //aot: [trace] aot inline builtin: Set.has, caller function name:func_main_0@builtinSetAdd
[all …]
/arkcompiler/ets_frontend/arkguard/test/ut/utils/
DApiExtractor.spec.ts36 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass1'), true);
37 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass2'), true);
45 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass1'), false);
46 assert.strictEqual(ApiExtractor.mSystemExportSet.has('class1'), true);
47 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass2'), true);
55 assert.strictEqual(ApiExtractor.mSystemExportSet.has('default'), false);
56 assert.strictEqual(ApiExtractor.mSystemExportSet.has('name1'), true);
57 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass2'), true);
58 assert.strictEqual(ApiExtractor.mSystemExportSet.has('exportName'), true);
66 assert.strictEqual(ApiExtractor.mSystemExportSet.has('ExportDeclarationClass1'), false);
[all …]
DOhsUtil.spec.ts94 …expect(propertySet.has('Identifier') && propertySet.has('String') && propertySet.has('3 + 2')).to.…
95 expect(stringPropsSet.has('String') && propertySet.has('3 + 2')).to.be.true;
103 expect(stringPropsSet.has('value')).to.be.false;
112 expect(stringPropsSet.has('value')).to.be.true;
121 expect(stringPropsSet.has('9999999')).to.be.false;
129 expect(stringPropsSet.has('property')).to.be.false;
140 expect(stringPropsSet.has('property')).to.be.true;
141 expect(propertySet.has('property')).to.be.true;
198 expect(structPropsSet.has('name')).to.be.true;
199 expect(propertySet.has('parameter')).to.be.false;
[all …]
/arkcompiler/ets_runtime/test/moduletest/weakcollectionswithsymbol/
Dweaksetsymbolvalue.js34 print("ws.has(sym1) " + ws.has(sym1));
36 print("ws.has(sym1) " + ws.has(sym1));
38 print("ws.has(sym2) " + ws.has(sym2));
61 print("ws.has(Symbol.match) " + ws.has(Symbol.match));
Dexpect_output.txt16 wm.has(s1) true
19 wm.has(s1) false
20 wm.has(s2) false
27 ws.has(sym1) true
29 ws.has(sym1) false
30 ws.has(sym2) false
32 ws.has(Symbol.match) true
Dweakmapsymbolkey.js36 print("wm.has(s1) " + wm.has(s1));
39 print("wm.has(s1) " + wm.has(s1));
41 print("wm.has(s2) " + wm.has(s2));
/arkcompiler/ets_runtime/test/moduletest/container/
Dcontainer_treeset.js37 // test has: true
38 map.set("test has:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
75 setFlag= set.has(key) && set.has(value);
87 set.popLast() == "ee" && !set.has("aa"));
89 map.set("test remove:", set.remove("bb") && set.length == 2 && !set.has("bb"));
92 map.set("test clear:", set.length == 0 && !set.has("cc") && set.isEmpty());
105 map.set("test has undefined", cmmp.has(undefined) == false);
106 map.set("test has null", cmmp.has(null) == false);
109 map.set("test has undefined false", cmmp.has(undefined) == true);
110 map.set("test has null false", cmmp.has(null) == true);
[all …]
Dcontainer_hashset.js31 // test has: true
32 map.set("test has:", set.length == 2 && set.has("aa") && set.has("bb") && !set.has("cc"));
73 map.set("test clear:", set.length == 0 && !set.has("cc") && set.isEmpty());
88 // test has: true
89 … map.set("test has:", proxy.length == 2 && proxy.has("aa") && proxy.has("bb") && !proxy.has("cc"));
131 map.set("test clear:", proxy.length == 0 && !proxy.has("cc") && proxy.isEmpty());
Dcontainer_lightweightset.js34 // test has: true
35 res.set("test has 1:", proxy.has(1));
36 res.set("test has 2:", proxy.has(2));
37 res.set("test has 3:", proxy.has(3));
38 // test has: false
39 res.set("test has 4:", proxy.has(4) == false);
63 flag = proxy.has(key) && proxy.has(value);
/arkcompiler/ets_frontend/ets2panda/linter/test_regression/
D14953.ts.json42 …"suggest": "Property '['b']' has no initializer and is not definitely assigned in the constructor.…
43 … "rule": "Property '['b']' has no initializer and is not definitely assigned in the constructor."
49 …"suggest": "Property '[T.A]' has no initializer and is not definitely assigned in the constructor.…
50 … "rule": "Property '[T.A]' has no initializer and is not definitely assigned in the constructor."
56 …"suggest": "Property '[T.B]' has no initializer and is not definitely assigned in the constructor.…
57 … "rule": "Property '[T.B]' has no initializer and is not definitely assigned in the constructor."
63 …"suggest": "Property '[str1]' has no initializer and is not definitely assigned in the constructor…
64 … "rule": "Property '[str1]' has no initializer and is not definitely assigned in the constructor."
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_api_tree_set_test.cpp89 // test has in HWTEST_F_L0()
90 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() local
91 EXPECT_EQ(has, true); in HWTEST_F_L0()
126 // test has in HWTEST_F_L0()
127 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() local
128 EXPECT_EQ(has, false); in HWTEST_F_L0()
135 // test has in HWTEST_F_L0()
136 bool has = JSAPITreeSet::Has(thread, tset, key); in HWTEST_F_L0() local
137 EXPECT_EQ(has, true); in HWTEST_F_L0()
157 // test has in HWTEST_F_L0()
[all …]
Djs_api_hashset_test.cpp73 // test has in HWTEST_F_L0()
74 JSTaggedValue bHas = hashSet->Has(thread, value.GetTaggedValue()); in HWTEST_F_L0()
83 // test Has exception in HWTEST_F_L0()
84 JSTaggedValue exceptionHas = hashSet->Has(thread, JSTaggedValue::Hole()); in HWTEST_F_L0()
110 // test has in HWTEST_F_L0()
111 JSTaggedValue has = hashSet->Has(thread, value.GetTaggedValue()); in HWTEST_F_L0() local
112 EXPECT_EQ(has, JSTaggedValue::False()); in HWTEST_F_L0()
119 // test has in HWTEST_F_L0()
120 JSTaggedValue has = hashSet->Has(thread, value.GetTaggedValue()); in HWTEST_F_L0() local
121 EXPECT_EQ(has, JSTaggedValue::True()); in HWTEST_F_L0()
[all …]

12345678910>>...59