Home
last modified time | relevance | path

Searched full:list (Results 1 – 25 of 8239) sorted by relevance

12345678910>>...330

/third_party/typescript/tests/baselines/reference/
DgenericClassWithStaticFactory.types5 export class List<T> {
6 >List : List<T>
8 public next: List<T>;
9 >next : List<T>
11 public prev: List<T>;
12 >prev : List<T>
31 public add(data: T): List<T> {
32 >add : (data: T) => List<T>
36 >entry : List<T>
37 >this.listFactory.MakeEntry(data) : List<T>
[all …]
DclassTypeParametersInStatics.types6 export class List<T> {
7 >List : List<T>
9 public next: List<T>;
10 >next : List<T>
12 public prev: List<T>;
13 >prev : List<T>
21 public static MakeHead(): List<T> { // should error
22 >MakeHead : () => List<T>
24 var entry: List<T> = new List<T>(true, null);
25 >entry : List<T>
[all …]
DcontravariantInferenceAndTypeGuard.types14 …teratorFn<TData, TResult, TContext = List<TData>> = (this: TContext, item: TData, node: ListItem<T…
19 >list : List<TData>
21 …a, TResult extends TData, TContext = List<TData>> = (this: TContext, item: TData, node: ListItem<T…
26 >list : List<TData>
28 declare class List<TData> {
29 >List : List<TData>
31 …, TResult extends TData>(fn: FilterFn<TData, TResult, TContext>, context: TContext): List<TResult>;
32List<TResult>; <TResult extends TData>(fn: FilterFn<TData, TResult, List<TData>>): List<TResult>; …
36 filter<TResult extends TData>(fn: FilterFn<TData, TResult>): List<TResult>;
37List<TResult>; <TResult extends TData>(fn: FilterFn<TData, TResult>): List<TResult>; <TContext>(fn…
[all …]
DgenericClassWithStaticFactory.symbols5 export class List<T> {
6 >List : Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15))
9 public next: List<T>;
10 >next : Symbol(List.next, Decl(genericClassWithStaticFactory.ts, 2, 26))
11 >List : Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15))
14 public prev: List<T>;
15 >prev : Symbol(List.prev, Decl(genericClassWithStaticFactory.ts, 3, 29))
16 >List : Symbol(List, Decl(genericClassWithStaticFactory.ts, 0, 15))
20 >listFactory : Symbol(List.listFactory, Decl(genericClassWithStaticFactory.ts, 4, 29))
25 >isHead : Symbol(List.isHead, Decl(genericClassWithStaticFactory.ts, 7, 20))
[all …]
DarrayLiteralsWithRecursiveGenerics.types2 class List<T> {
3 >List : List<T>
8 next: List<List<T>>;
9 >next : List<List<T>>
12 class DerivedList<U> extends List<U> {
14 >List : List<U>
19 // next: List<List<U>>
32 var list: List<number>;
33 >list : List<number>
35 var list2: List<string>;
[all …]
DlistFailure.types8 lines: List<Line> = ListMakeHead<Line>();
9 >lines : List<Line>
10 >ListMakeHead<Line>() : List<Line>
11 >ListMakeHead : <U>() => List<U>
13 addLine(lineText: string): List<Line> {
14 >addLine : (lineText: string) => List<Line>
23 >lineEntry : List<Line>
24 >this.lines.add(line) : List<Line>
25 >this.lines.add : (data: Line) => List<Line>
26 >this.lines : List<Line>
[all …]
DobjectTypeWithRecursiveWrappedPropertyCheckedNominally.types4 class List<T> {
5 >List : List<T>
10 next: List<List<T>>;
11 >next : List<List<T>>
24 var list1 = new List<number>();
25 >list1 : List<number>
26 >new List<number>() : List<number>
27 >List : typeof List
29 var list2 = new List<string>();
30 >list2 : List<string>
[all …]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
DLinkedListTests.cpp11 #include <list>
58 // Checks that when iterating |list| (either from head to tail, or from
61 void ExpectListContentsForDirection(const LinkedList<Node>& list, in ExpectListContentsForDirection() argument
66 for (const LinkNode<Node>* node = (forward ? list.head() : list.tail()); node != list.end(); in ExpectListContentsForDirection()
76 void ExpectListContents(const LinkedList<Node>& list, int num_nodes, const int* node_ids) { in ExpectListContents() argument
79 ExpectListContentsForDirection(list, num_nodes, node_ids, true); in ExpectListContents()
83 ExpectListContentsForDirection(list, num_nodes, node_ids, false); in ExpectListContents()
88 LinkedList<Node> list; in TEST() local
89 EXPECT_EQ(list.end(), list.head()); in TEST()
90 EXPECT_EQ(list.end(), list.tail()); in TEST()
[all …]
/third_party/parse5/packages/parse5/lib/parser/
Dformatting-element-list.test.ts4 import { FormattingElementList, EntryType } from './formatting-element-list.js';
21 const list = new FormattingElementList(treeAdapter); constant
23 list.insertMarker();
24 assert.strictEqual(list.entries.length, 1);
25 assert.strictEqual(list.entries[0].type, EntryType.Marker);
27 list.insertMarker();
28 assert.strictEqual(list.entries.length, 2);
29 assert.strictEqual(list.entries[0].type, EntryType.Marker);
33 const list = new FormattingElementList(treeAdapter); constant
39 list.pushElement(element1, element1Token);
[all …]
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/
DProtobufArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
38 import java.util.List;
48 private ProtobufArrayList<Integer> list; field in ProtobufArrayListTest
52 list = new ProtobufArrayList<Integer>(); in setUp()
64 list.addAll(asList(1, 2, 3, 4)); in testModificationWithIteration()
65 Iterator<Integer> iterator = list.iterator(); in testModificationWithIteration()
66 assertEquals(4, list.size()); in testModificationWithIteration()
67 assertEquals(1, (int) list.get(0)); in testModificationWithIteration()
70 list.remove(0); in testModificationWithIteration()
[all …]
DLazyStringArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
39 import java.util.List;
58 LazyStringArrayList list = new LazyStringArrayList(); in testJustStrings() local
59 list.add(STRING_A); in testJustStrings()
60 list.add(STRING_B); in testJustStrings()
61 list.add(STRING_C); in testJustStrings()
63 assertEquals(3, list.size()); in testJustStrings()
64 assertSame(STRING_A, list.get(0)); in testJustStrings()
65 assertSame(STRING_B, list.get(1)); in testJustStrings()
[all …]
DIntArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
51 private IntArrayList list; field in IntArrayListTest
55 list = new IntArrayList(); in setUp()
67 list.addInt(3); in testMakeImmutable()
68 list.addInt(4); in testMakeImmutable()
69 list.addInt(5); in testMakeImmutable()
70 list.addInt(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 assertImmutable(list); in testMakeImmutable()
[all …]
DBooleanArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
52 private BooleanArrayList list; field in BooleanArrayListTest
56 list = new BooleanArrayList(); in setUp()
68 list.addBoolean(true); in testMakeImmutable()
69 list.addBoolean(false); in testMakeImmutable()
70 list.addBoolean(true); in testMakeImmutable()
71 list.addBoolean(true); in testMakeImmutable()
72 list.makeImmutable(); in testMakeImmutable()
73 assertImmutable(list); in testMakeImmutable()
[all …]
DFloatArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
51 private FloatArrayList list; field in FloatArrayListTest
55 list = new FloatArrayList(); in setUp()
67 list.addFloat(3); in testMakeImmutable()
68 list.addFloat(4); in testMakeImmutable()
69 list.addFloat(5); in testMakeImmutable()
70 list.addFloat(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 assertImmutable(list); in testMakeImmutable()
[all …]
DLongArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
51 private LongArrayList list; field in LongArrayListTest
55 list = new LongArrayList(); in setUp()
67 list.addLong(3); in testMakeImmutable()
68 list.addLong(4); in testMakeImmutable()
69 list.addLong(5); in testMakeImmutable()
70 list.addLong(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 assertImmutable(list); in testMakeImmutable()
[all …]
DDoubleArrayListTest.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
51 private DoubleArrayList list; field in DoubleArrayListTest
55 list = new DoubleArrayList(); in setUp()
67 list.addDouble(3); in testMakeImmutable()
68 list.addDouble(4); in testMakeImmutable()
69 list.addDouble(5); in testMakeImmutable()
70 list.addDouble(7); in testMakeImmutable()
71 list.makeImmutable(); in testMakeImmutable()
72 assertImmutable(list); in testMakeImmutable()
[all …]
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/
DListFieldSchema.java10 // notice, this list of conditions and the following disclaimer.
12 // copyright notice, this list of conditions and the following disclaimer
36 import java.util.List;
39 * Utility class that aids in properly manipulating list fields for either the lite or full runtime.
48 abstract <L> List<L> mutableListAt(Object msg, long offset); in mutableListAt()
69 <L> List<L> mutableListAt(Object message, long offset) { in mutableListAt()
75 List<?> list = (List<?>) UnsafeUtil.getObject(message, offset); in makeImmutableListAt() local
77 if (list instanceof LazyStringList) { in makeImmutableListAt()
78 immutable = ((LazyStringList) list).getUnmodifiableView(); in makeImmutableListAt()
79 } else if (UNMODIFIABLE_LIST_CLASS.isAssignableFrom(list.getClass())) { in makeImmutableListAt()
[all …]
/third_party/protobuf/csharp/compatibility_tests/v3.0.0/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs11 // notice, this list of conditions and the following disclaimer.
13 // copyright notice, this list of conditions and the following disclaimer
50 var list = new RepeatedField<string>(); in NullValuesRejected()
51 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
61 var list = new RepeatedField<string>(); in Add_SingleItem()
62 list.Add("foo"); in Add_SingleItem()
[all …]
/third_party/python/Doc/c-api/
Dlist.rst5 List Objects
8 .. index:: pair: object; list
13 This subtype of :c:type:`PyObject` represents a Python list object.
18 This instance of :c:type:`PyTypeObject` represents the Python list type.
19 This is the same object as :class:`list` in the Python layer.
24 Return true if *p* is a list object or an instance of a subtype of the list
30 Return true if *p* is a list object, but not an instance of a subtype of
31 the list type. This function always succeeds.
36 Return a new list of length *len* on success, or ``NULL`` on failure.
40 If *len* is greater than zero, the returned list object's items are
[all …]
/third_party/node/deps/cares/src/lib/
Dares__llist.h31 * This is a doubly-linked list data structure.
43 /*! Opaque data structure for linked list */
48 /*! Opaque data structure for a node in a linked list */
57 /*! Create a linked list object
60 * \return linked list object or NULL on out of memory
64 /*! Replace destructor for linked list nodes. Typically this is used
67 * \param[in] list Initialized linked list object
70 void ares__llist_replace_destructor(ares__llist_t *list,
73 /*! Insert value as the first node in the linked list
75 * \param[in] list Initialized linked list object
[all …]
Dares__slist.c61 ares__slist_t *list; in ares__slist_create() local
67 list = ares_malloc_zero(sizeof(*list)); in ares__slist_create()
69 if (list == NULL) { in ares__slist_create()
73 list->rand_state = rand_state; in ares__slist_create()
74 list->cmp = cmp; in ares__slist_create()
75 list->destruct = destruct; in ares__slist_create()
77 list->levels = ARES__SLIST_START_LEVELS; in ares__slist_create()
78 list->head = ares_malloc_zero(sizeof(*list->head) * list->levels); in ares__slist_create()
79 if (list->head == NULL) { in ares__slist_create()
80 ares_free(list); in ares__slist_create()
[all …]
/third_party/libxml2/
Dbackport-malloc-fail-Fix-null-deref-after-xmlSchemaItemList-A.patch19 @@ -3417,23 +3417,17 @@ xmlSchemaItemListClear(xmlSchemaItemListPtr list)
21 xmlSchemaItemListAdd(xmlSchemaItemListPtr list, void *item)
23 - if (list->items == NULL) {
24 - list->items = (void **) xmlMalloc(
26 - if (list->items == NULL) {
27 - xmlSchemaPErrMemory(NULL, "allocating new item list", NULL);
30 - list->sizeItems = 20;
31 - } else if (list->sizeItems <= list->nbItems) {
32 - list->sizeItems *= 2;
33 - list->items = (void **) xmlRealloc(list->items,
[all …]
/third_party/protobuf/csharp/src/Google.Protobuf.Test/Collections/
DRepeatedFieldTest.cs11 // notice, this list of conditions and the following disclaimer.
13 // copyright notice, this list of conditions and the following disclaimer
51 var list = new RepeatedField<string>(); in NullValuesRejected()
52 Assert.Throws<ArgumentNullException>(() => list.Add((string)null)); in NullValuesRejected()
53 Assert.Throws<ArgumentNullException>(() => list.Add((IEnumerable<string>)null)); in NullValuesRejected()
54 Assert.Throws<ArgumentNullException>(() => list.Add((RepeatedField<string>)null)); in NullValuesRejected()
55 Assert.Throws<ArgumentNullException>(() => list.Contains(null)); in NullValuesRejected()
56 Assert.Throws<ArgumentNullException>(() => list.IndexOf(null)); in NullValuesRejected()
62 var list = new RepeatedField<string>(); in Add_SingleItem()
63 list.Add("foo"); in Add_SingleItem()
[all …]
/third_party/skia/third_party/externals/tint/src/diagnostic/
Ddiagnostic.h70 /// List is a container of Diagnostic messages.
71 class List {
76 /// Constructs the list with no elements.
77 List();
79 /// Copy constructor. Copies the diagnostics from `list` into this list.
80 /// @param list the list of diagnostics to copy into this list.
81 List(std::initializer_list<Diagnostic> list);
83 /// Copy constructor. Copies the diagnostics from `list` into this list.
84 /// @param list the list of diagnostics to copy into this list.
85 List(const List& list);
[all …]
/third_party/mesa3d/src/gallium/frontends/nine/
Dnine_shader.h134 nine_shader_variant_get(struct nine_shader_variant *list, in nine_shader_variant_get() argument
139 while (list->key != key && list->next) in nine_shader_variant_get()
140 list = list->next; in nine_shader_variant_get()
141 if (list->key == key) { in nine_shader_variant_get()
142 *const_ranges = list->const_ranges; in nine_shader_variant_get()
143 *const_used_size = list->const_used_size; in nine_shader_variant_get()
144 return list->cso; in nine_shader_variant_get()
150 nine_shader_variant_add(struct nine_shader_variant *list, in nine_shader_variant_add() argument
155 while (list->next) { in nine_shader_variant_add()
156 assert(list->key != key); in nine_shader_variant_add()
[all …]

12345678910>>...330