/arkcompiler/runtime_core/libpandabase/tests/ |
D | list_test.cpp | 66 size_t GetListSize(const List<TestNode> &list) const in GetListSize() 69 for (auto it : list) in GetListSize() 82 List<TestNode> list; in TEST_F() local 85 ASSERT_TRUE(list.Empty()); in TEST_F() 88 list.PushFront(*node); in TEST_F() 90 ASSERT_FALSE(list.Empty()); in TEST_F() 91 ASSERT_EQ(node, &list.Front()); in TEST_F() 92 ASSERT_EQ(node, &*list.begin()); in TEST_F() 93 ASSERT_EQ(++list.begin(), list.end()); in TEST_F() 95 ASSERT_TRUE(IsEqual(list, {1})); in TEST_F() [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | arrayLiteralsWithRecursiveGenerics.ts | 36 let list: List<number>; variable 37 AssertType(list, "List<number>"); 45 let xs = [list, myList]; // {}[] 47 AssertType([list, myList], "(union)[]"); 48 AssertType(list, "List<number>"); 51 let ys = [list, list2]; // {}[] 53 AssertType([list, list2], "(union)[]"); 54 AssertType(list, "List<number>"); 57 let zs = [list, null]; // List<number>[] 59 AssertType([list, null], "List<number>[]"); [all …]
|
D | staticAnonymousTypeNotReferencingTypeParameter.ts | 190 static contains<T>(dit: typeof ListWrapper, list: T[], el: T): boolean { 191 AssertType(list.indexOf(el) !== -1, "boolean"); 192 return list.indexOf(el) !== -1; 194 AssertType(list.indexOf(el), "number"); 196 AssertType(list.indexOf, "(T, ?number) => number"); 245 …static insert<T>(dit: typeof ListWrapper, list: T[], index: number, value: T) { list.splice(index,… 246 AssertType(list.splice(index, 0, value), "T[]"); 248 AssertType(list.splice, "{ (number, ?number): T[]; (number, number, ...T[]): T[]; }"); 257 static removeAt<T>(dit: typeof ListWrapper, list: T[], index: number): T { 258 let res = list[index]; [all …]
|
D | assignmentCompatForEnums.ts | 23 let list = {}; variable 24 AssertType(list, "{}"); 40 let x: TokenType = list['one']; 42 AssertType(list['one'], "error"); 43 AssertType(list, "{}");
|
D | genericArrayPropertyAssignment.ts | 21 function isEmpty(list: {length:number;}) 23 AssertType(list.length ===0, "boolean"); 24 AssertType(list.length, "number"); 26 return list.length ===0;
|
D | contravariantInferenceAndTypeGuard.ts | 26 …ext = List<TData>> = (this: TContext, item: TData, node: ListItem<TData>, list: List<TData>) => TR… 27 …ext = List<TData>> = (this: TContext, item: TData, node: ListItem<TData>, list: List<TData>) => it… 44 const filter1 = list2.filter(function(item, node, list): item is Test { 47 AssertType(function(item, node, list): item is Test { this.b; // $ExpectType string item; // … 50 AssertType(list, "List<union>"); 51 AssertType(list2.filter(function(item, node, list): item is Test { this.b; // $ExpectType string… 63 list; // $ExpectType List<Test | null> 64 AssertType(list, "List<union>");
|
D | genericTypeParameterEquivalence2.ts | 39 function forEach<A>(list: A[], f: (a: A, n?: number) => void ): void { 40 for (let i = 0; i < list.length; ++i) { 43 AssertType(i < list.length, "boolean"); 45 AssertType(list.length, "number"); 49 f(list[i], i); 50 AssertType(f(list[i], i), "void"); 52 AssertType(list[i], "A"); 53 AssertType(list, "A[]");
|
D | genericContextualTypes1.ts | 27 declare function list<T>(a: T): T[]; 43 const f00: <A>(x: A) => A[] = list; 46 AssertType(list, "<T>(T) => T[]"); 56 const f02: <A>(x: A) => A[] = wrap(list); 59 AssertType(wrap(list), "(A) => A[]"); 61 AssertType(list, "<T>(T) => T[]"); 73 const f10: <T>(x: T) => Box<T[]> = compose(a => list(a), b => box(b)); 76 AssertType(compose(a => list(a), b => box(b)), "(T) => Box<T[]>"); 78 AssertType(a => list(a), "(T) => T[]"); 80 AssertType(list(a), "T[]"); [all …]
|
D | recursiveTypesUsedAsFunctionParameters.ts | 88 let list: List<string>; 89 AssertType(list, "List<string>"); 94 let r = foo5(list); 96 AssertType(foo5(list), "number"); 98 AssertType(list, "List<string>");
|
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/control/ |
D | XSelect.js | 19 constructor(list, default_) { argument 21 this.resetList(list, default_); 28 resetList(list, default_) { argument 29 this.list_ = list; 53 let list = this.default_.split('\\'); 54 if (list.length > model) { 55 for (let i = list.length - model; i < list.length; i++) { 56 name += list[i]; 57 if (i !== list.length - 1) { 83 let list = this.list_[i].split('\\'); [all …]
|
/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_linked_list.h | 33 …static void Add(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTaggedVa… 34 static JSHandle<JSAPILinkedList> Clone(JSThread *thread, const JSHandle<JSAPILinkedList> &list); 35 …static void AddFirst(JSThread *thread, const JSHandle<JSAPILinkedList> &list, const JSHandle<JSTag… 36 static JSTaggedValue Insert(JSThread *thread, const JSHandle<JSAPILinkedList> &list, 38 static JSTaggedValue Set(JSThread *thread, const JSHandle<JSAPILinkedList> &list, 40 …static JSTaggedValue ConvertToArray(const JSThread *thread, const JSHandle<JSAPILinkedList> &list); 41 static JSHandle<TaggedArray> OwnKeys(JSThread *thread, const JSHandle<JSAPILinkedList> &list); 42 static bool GetOwnProperty(JSThread *thread, const JSHandle<JSAPILinkedList> &list, 44 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSAPILinkedList> &list, 49 static JSTaggedValue RemoveFirst(JSThread *thread, const JSHandle<JSAPILinkedList> &list); [all …]
|
D | js_api_linked_list.cpp | 27 JSTaggedValue JSAPILinkedList::Insert(JSThread *thread, const JSHandle<JSAPILinkedList> &list, in Insert() argument 30 JSHandle<TaggedDoubleList> doubleList(thread, list->GetDoubleList()); in Insert() 40 list->SetDoubleList(thread, newList); in Insert() 52 …le<JSAPILinkedList> JSAPILinkedList::Clone(JSThread *thread, const JSHandle<JSAPILinkedList> &list) in Clone() argument 54 JSTaggedValue doubleListTaggedValue = list->GetDoubleList(); in Clone() 70 JSTaggedValue JSAPILinkedList::RemoveFirst(JSThread *thread, const JSHandle<JSAPILinkedList> &list) in RemoveFirst() argument 72 JSHandle<TaggedDoubleList> doubleList(thread, list->GetDoubleList()); in RemoveFirst() 81 JSTaggedValue JSAPILinkedList::RemoveLast(JSThread *thread, const JSHandle<JSAPILinkedList> &list) in RemoveLast() argument 83 JSHandle<TaggedDoubleList> doubleList(thread, list->GetDoubleList()); in RemoveLast() 92 JSTaggedValue JSAPILinkedList::RemoveByIndex(JSThread *thread, JSHandle<JSAPILinkedList> &list, con… in RemoveByIndex() argument [all …]
|
D | js_api_list.h | 33 …static void Add(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue> &… 34 static JSTaggedValue Insert(JSThread *thread, const JSHandle<JSAPIList> &list, 36 static JSTaggedValue Set(JSThread *thread, const JSHandle<JSAPIList> &list, 43 static JSTaggedValue ConvertToArray(const JSThread *thread, const JSHandle<JSAPIList> &list); 44 static JSTaggedValue GetSubList(JSThread *thread, const JSHandle<JSAPIList> &list, 46 …static JSTaggedValue RemoveByIndex(JSThread *thread, const JSHandle<JSAPIList> &list, const int &i… 47 static JSHandle<TaggedArray> OwnKeys(JSThread *thread, const JSHandle<JSAPIList> &list); 48 static bool GetOwnProperty(JSThread *thread, const JSHandle<JSAPIList> &list, 50 static OperationResult GetProperty(JSThread *thread, const JSHandle<JSAPIList> &list, 63 JSTaggedValue Equal(JSThread *thread, const JSHandle<JSAPIList> &list);
|
D | js_api_list.cpp | 31 void JSAPIList::Add(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<JSTaggedValue… in Add() argument 33 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in Add() 35 list->SetSingleList(thread, newList); in Add() 56 JSTaggedValue JSAPIList::Insert(JSThread *thread, const JSHandle<JSAPIList> &list, const JSHandle<J… in Insert() argument 59 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in Insert() 69 list->SetSingleList(thread, newList); in Insert() 73 JSTaggedValue JSAPIList::Set(JSThread *thread, const JSHandle<JSAPIList> &list, in Set() argument 76 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in Set() 131 JSTaggedValue JSAPIList::RemoveByIndex(JSThread *thread, const JSHandle<JSAPIList> &list, const int… in RemoveByIndex() argument 133 JSHandle<TaggedSingleList> singleList(thread, list->GetSingleList()); in RemoveByIndex() [all …]
|
/arkcompiler/ets_runtime/test/moduletest/container/ |
D | container_linked_list.js | 25 let list = new LinkedList(); variable 29 list.add(i) 32 map.set("test linkedlist has:", list.has(8)) 33 map.set("test linkedlist not has:", list.has(2)) 34 map.set("test linkedlist getLastIndexOf:", list.getLastIndexOf(1) === 1) 35 map.set("test linkedlist getIndexOf:", list.getIndexOf(5) === 5) 37 list.removeByIndex(9) 42 if (list[i] !== testArray[i]) { 48 const removeRes = list.remove(8) 52 if (list[i] !== testArray[i]) { [all …]
|
D | container_list.js | 25 let list = new List(); variable 28 map.set("test list isEmpty1:", list.isEmpty() === true) 30 list.add(i) 34 map.set("test list isEmpty2:", list.isEmpty() === false) 35 map.set("test list get 1:", list.get(1) === 1) 36 map.set("test list has:", list.has(8)) 37 map.set("test list not has:", list.has(123) === false) 46 map.set("test list equal:", list.equal(list1)) 47 list.add(10) 49 map.set("test list equal:", list.equal(list1) === false) [all …]
|
/arkcompiler/ets_runtime/ecmascript/containers/tests/ |
D | containers_list_test.cpp | 66 JSHandle<JSTaggedValue> list = GetCallArg(argv, 2); // 2 means the secode arg in TestForEachFunc() local 67 if (!list->IsUndefined()) { in TestForEachFunc() 70 … JSAPIList::Set(thread, JSHandle<JSAPIList>::Cast(list), index->GetInt(), newValue); in TestForEachFunc() 111 JSHandle<JSAPIList> list(thread, result); in CreateJSAPIList() local 112 return list; in CreateJSAPIList() 115 JSTaggedValue ListAdd(JSHandle<JSAPIList> list, JSTaggedValue value) in ListAdd() argument 119 callInfo->SetThis(list.GetTaggedValue()); in ListAdd() 128 JSTaggedValue ListEqual(JSHandle<JSAPIList> list, JSHandle<JSAPIList> compareList) in ListEqual() argument 132 callInfo->SetThis(list.GetTaggedValue()); in ListEqual() 157 JSHandle<JSAPIList> list(thread, result); in HWTEST_F_L0() local [all …]
|
/arkcompiler/toolchain/tooling/test/testcases/js/ |
D | container.js | 187 let list = new List(); 188 list.add(18); 189 list.add(1587); 190 list.add(527); 191 list.add(0); 192 list.add('one'); 193 list.add('three'); 194 list.add(88); 195 list.add('nine'); 196 list.add(18); [all …]
|
/arkcompiler/ets_runtime/test/aottest/logic_op/ |
D | expect_output.txt | 14 operator == test list: 21 operator != test list: 28 operator < test list: 35 operator <= test list: 42 operator > test list: 49 operator >= test list:
|
/arkcompiler/ets_frontend/es2panda/typescript/core/ |
D | typeRelation.cpp | 49 …:IsTypeIdenticalTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeIdenticalTo() argument 53 relation_->RaiseError(list, errPos); in IsTypeIdenticalTo() 74 …IsTypeAssignableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeAssignableTo() argument 78 relation_->RaiseError(list, errPos); in IsTypeAssignableTo() 99 …IsTypeComparableTo(Type *source, Type *target, std::initializer_list<TypeErrorMessageElement> list, in IsTypeComparableTo() argument 103 relation_->RaiseError(list, errPos); in IsTypeComparableTo()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_api_list_iterator_test.cpp | 85 …JSHandle<JSAPIList> list(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(constructor), cons… in CreateList() local 87 list->SetSingleList(thread, singleList); in CreateList() 88 return *list; in CreateList() 100 JSHandle<JSAPIList> list(thread, CreateList()); in HWTEST_F_L0() local 104 JSAPIList::Add(thread, list, value); in HWTEST_F_L0() 106 JSHandle<JSTaggedValue> taggedValueHandle(thread, list.GetTaggedValue()); in HWTEST_F_L0() 111 uint32_t capacity = static_cast<uint32_t>(list->Length()); in HWTEST_F_L0()
|
D | js_api_linked_list_test.cpp | 132 JSHandle<JSAPILinkedList> list(thread, CreateLinkedList()); in HWTEST_F_L0() local 133 list->Add(thread, list, value); in HWTEST_F_L0() 134 EXPECT_EQ(list->Length(), 1); in HWTEST_F_L0() 135 EXPECT_EQ(list->Get(0).GetInt(), 1); in HWTEST_F_L0() 138 list->AddFirst(thread, list, value1); in HWTEST_F_L0() 139 EXPECT_EQ(list->Length(), 2); in HWTEST_F_L0() 140 EXPECT_EQ(list->GetFirst().GetInt(), 2); in HWTEST_F_L0() 294 JSHandle<JSAPILinkedList> list(thread, linkedlist); in HWTEST_F_L0() local 295 JSAPILinkedList::Add(thread, list, value); in HWTEST_F_L0() 298 JSAPILinkedList::Insert(thread, list, value1, 0); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/test/aottest/aot_type_test/typelogicalop/ |
D | expect_output.txt | 14 operator < test list: 18 operator <= test list: 22 operator > test list: 26 operator >= test list:
|
/arkcompiler/toolchain/build/compile_script/ |
D | ark.py | 337 def build_for_gn_target(self, out_path: str, gn_args: list, arg_list: list, log_file_name: str): argument 372 def build_for_test262(self, out_path, gn_args: list, arg_list: list, log_file_name: str): argument 405 def build_for_unittest(self, out_path: str, gn_args: list, log_file_name:str): argument 411 def build(self, out_path: str, gn_args: list, arg_list: list): argument 428 def match_options(self, arg_list: list, out_path: str) -> [list, list]: argument 457 def start_for_matched_os_cpu_mode(self, os_cpu_key: str, mode_key: str, arg_list: list): argument 475 def __main__(self, arg_list: list): argument 477 arg_list = list(dict.fromkeys(arg_list))
|
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_global_storage.h | 509 NodeList<S> *list = NodeList<S>::NodeToNodeList(node); in DisposeGlobalHandleInner() local 510 list->FreeNode(thread_, node); in DisposeGlobalHandleInner() 513 if (!list->HasUsagedNode() && (*topNodes != *lastNodes)) { in DisposeGlobalHandleInner() 514 list->RemoveList(); in DisposeGlobalHandleInner() 515 if (*freeList == list) { in DisposeGlobalHandleInner() 516 *freeList = list->GetFreeNext(); in DisposeGlobalHandleInner() 518 if (*topNodes == list) { in DisposeGlobalHandleInner() 519 *topNodes = list->GetNext(); in DisposeGlobalHandleInner() 521 if (*lastNodes == list) { in DisposeGlobalHandleInner() 522 *lastNodes = list->GetPrev(); in DisposeGlobalHandleInner() [all …]
|