Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 25 of 62) sorted by relevance

123

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DbooleanFilterAnyArray.ts28 filter<S extends T>(cb1: (value: T) => value is S): T extends any ? Ari<any> : Ari<S>; method
29 filter(cb2: (value: T) => unknown): Ari<T>; method
40 let xs = anys.filter(Bullean)
42 AssertType(anys.filter(Bullean), "Ari<any>");
43 AssertType(anys.filter, "{ <S extends any>((any) => value is S): Ari<any>; ((any) => unknown): Ari<…
52 let ys = realanys.filter(Boolean)
54 AssertType(realanys.filter(Boolean), "any[]");
55 AssertType(realanys.filter, "{ <S extends any>((any, number, any[]) => value is S, ?any): S[]; ((an…
69 let foor = foo.filter(x => x.name)
71 AssertType(foo.filter(x => x.name), "{ name: string; }[]");
[all …]
DobjectInstantiationFromUnionSpread.ts34 a.map(item => ({ ...item })).filter(value => {});
35 AssertType(a.map(item => ({ ...item })).filter(value => {}), "(union)[]");
36 AssertType(a.map(item => ({ ...item })).filter, "{ <S extends union>((union, number, (union)[]) => …
49 a.map(item => ({ ...item })).filter(value => {});
50 AssertType(a.map(item => ({ ...item })).filter(value => {}), "(union)[]");
51 AssertType(a.map(item => ({ ...item })).filter, "{ <S extends union>((union, number, (union)[]) => …
DthisTypeInTypePredicate.ts21 declare function filter<S>(f: (this: void, x: any) => x is S): S[];
22 const numbers = filter<number>((x): x is number => 'number' == typeof x)
24 AssertType(filter<number>((x): x is number => 'number' == typeof x), "number[]");
25 AssertType(filter, "<S>((void, any) => x is S) => S[]");
DcontravariantInferenceAndTypeGuard.ts30filter<TContext, TResult extends TData>(fn: FilterFn<TData, TResult, TContext>, context: TContext)… method in List
31 filter<TResult extends TData>(fn: FilterFn<TData, TResult>): List<TResult>;
32 filter<TContext>(fn: IteratorFn<TData, boolean, TContext>, context: TContext): List<TData>;
33 filter(fn: IteratorFn<TData, boolean>): List<TData>;
44 const filter1 = list2.filter(function(item, node, list): item is Test {
46 AssertType(list2.filter, "{ <TContext, TResult extends union>(FilterFn<union, TResult, TContext>, T…
51 AssertType(list2.filter(function(item, node, list): item is Test { this.b; // $ExpectType string…
DnonInferrableTypePropagation2.ts41 declare const filter: { constant
42 AssertType(filter, "{ <A, B extends A>(Refinement<A, B>): (readonly A[]) => readonly B[]; <A>(Predi…
64 const x = pipe(es, filter(exists((n) => n > 0)))
66 AssertType(pipe(es, filter(exists((n) => n > 0))), "readonly Either<string, number>[]");
69 AssertType(filter(exists((n) => n > 0)), "(readonly Either<string, number>[]) => readonly Either<st…
70 AssertType(filter, "{ <A, B extends A>(Refinement<A, B>): (readonly A[]) => readonly B[]; <A>(Predi…
DdeclarationEmitPromise.ts27 let result = await (bluebird.all as any)([a, b, c, d, e].filter(el => !!el));
29 AssertType(await (bluebird.all as any)([a, b, c, d, e].filter(el => !!el)), "any");
30 AssertType((bluebird.all as any)([a, b, c, d, e].filter(el => !!el)), "any");
34 AssertType([a, b, c, d, e].filter(el => !!el), "bluebird<A>[]");
35 AssertType([a, b, c, d, e].filter, "{ <S extends bluebird<A>>((bluebird<A>, number, bluebird<A>[]) …
76 let result = await (bluebird.all as any)([a, b, c, d, e].filter(el => !!el));
78 AssertType(await (bluebird.all as any)([a, b, c, d, e].filter(el => !!el)), "any");
79 AssertType((bluebird.all as any)([a, b, c, d, e].filter(el => !!el)), "any");
83 AssertType([a, b, c, d, e].filter(el => !!el), "bluebird<A>[]");
84 AssertType([a, b, c, d, e].filter, "{ <S extends bluebird<A>>((bluebird<A>, number, bluebird<A>[]) …
DtypePredicateFreshLiteralWidening.ts88 const filteredValues2 = values2.filter(isNotNull);
90 AssertType(values2.filter(isNotNull), "(union)[]");
91 AssertType(values2.filter, "{ <S extends union>((union, number, (union)[]) => value is S, ?any): S[…
102 const filteredValues1 = values1.filter(isNotNull);
104 AssertType(values1.filter(isNotNull), "(union)[]");
105 AssertType(values1.filter, "{ <S extends union>((union, number, (union)[]) => value is S, ?any): S[…
DtypeInferenceTypePredicate2.ts22 AssertType([true, true, false, null] .filter((thing): thing is boolean => thing !== null) .ma…
23 AssertType([true, true, false, null] .filter((thing): thing is boolean => thing !== null) .ma…
25 .filter((thing): thing is boolean => thing !== null)
DarrayFilter.ts45 foo.filter(x => x.name); //should accepted all possible types not only boolean!
46 AssertType(foo.filter(x => x.name), "{ name: string; }[]");
47 AssertType(foo.filter, "{ <S extends { name: string; }>(({ name: string; }, number, { name: string;…
DgenericMethodOverspecialization.ts57 let xxx = elements.filter(function (e) {
59 AssertType(elements.filter, "{ <S extends HTMLElement>((HTMLElement, number, HTMLElement[]) => valu…
62 AssertType(elements.filter(function (e) { return !e.isDisabled;}), "HTMLElement[]");
DgenericTypeParameterEquivalence2.ts60 function filter<A>(f: (a: A) => boolean, ar: A[]): A[] { function
114 let cfilter = curry1(filter);
116 AssertType(curry1(filter), "<A>((A) => boolean) => (A[]) => A[]");
118 AssertType(filter, "<A>((A) => boolean, A[]) => A[]");
DinferFromGenericFunctionReturnTypes2.ts240 function filter<A>(predicate: (a: A) => boolean): (s: SetOf<A>) => SetOf<A> { function
292 AssertType(testSet.transform( compose( filter(x => x % 1 === 0), map(x => x + x), map(x =…
296 AssertType(compose( filter(x => x % 1 === 0), map(x => x + x), map(x => x + '!!!'), map…
299 filter(x => x % 1 === 0),
300 AssertType(filter(x => x % 1 === 0), "(SetOf<number>) => SetOf<number>");
301 AssertType(filter, "<A>((A) => boolean) => (SetOf<A>) => SetOf<A>");
343 AssertType(testSet.transform( compose( filter(x => x % 1 === 0), identity, map(x => x + '…
347 AssertType(compose( filter(x => x % 1 === 0), identity, map(x => x + '!!!'), map(x => x…
350 filter(x => x % 1 === 0),
351 AssertType(filter(x => x % 1 === 0), "(SetOf<number>) => SetOf<number>");
[all …]
DgenericContextualTypes1.ts132 const arrayFilter = <T>(f: (x: T) => boolean) => (a: T[]) => a.filter(f);
134 AssertType(<T>(f: (x: T) => boolean) => (a: T[]) => a.filter(f), "<T>((T) => boolean) => (T[]) => T…
137 AssertType((a: T[]) => a.filter(f), "(T[]) => T[]");
139 AssertType(a.filter(f), "T[]");
140 AssertType(a.filter, "{ <S extends T>((T, number, T[]) => value is S, ?any): S[]; ((T, number, T[])…
/arkcompiler/ets_runtime/ecmascript/
Dfilter_helper.h40 static bool IgnoreKeyByFilter(T &desc, uint32_t filter) in IgnoreKeyByFilter() argument
42 if (filter == NATIVE_DEFAULT) { in IgnoreKeyByFilter()
45 if ((filter & NATIVE_WRITABLE) && !desc.IsWritable()) { in IgnoreKeyByFilter()
48 if ((filter & NATIVE_ENUMERABLE) && !desc.IsEnumerable()) { in IgnoreKeyByFilter()
51 if ((filter & NATIVE_CONFIGURABLE) && !desc.IsConfigurable()) { in IgnoreKeyByFilter()
Dlayout_info.cpp89 … TaggedArray *keyArray, const JSHandle<JSObject> object, uint32_t filter) in GetAllKeysByFilter() argument
99 if (key.IsString() && !(filter & NATIVE_KEY_SKIP_STRINGS)) { in GetAllKeysByFilter()
104 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter()
117 if (key.IsSymbol() && !(filter & NATIVE_KEY_SKIP_SYMBOLS)) { in GetAllKeysByFilter()
119 bool bIgnore = FilterHelper::IgnoreKeyByFilter<PropertyAttributes>(attr, filter); in GetAllKeysByFilter()
/arkcompiler/ets_runtime/test/moduletest/asmstackoverflow/
Dasmstackoverflow.js59 arr.filter(bar);
74 arr.filter(bar);
89 arr.filter(bar);
104 arr.filter(bar);
119 arr.filter(bar);
/arkcompiler/ets_frontend/ts2panda/tests/expression/
Dconditions.test.ts46 let jumps = insns.filter(item => item instanceof Jeqz);
60 let jumps = insns.filter(item => item instanceof Jeqz);
76 let jumps = insns.filter(item => (item instanceof Jeqz || item instanceof Jmp));
77 let labels = insns.filter(item => (item instanceof Label));
170 let jumps = insns.filter(item => (item instanceof Jeqz || item instanceof Jmp));
171 let labels = insns.filter(item => (item instanceof Label));
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationNoNewNames/
Dobservable.ts23 filter(pred: (e:T) => boolean): Observable<T>;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationCollidingNamesInAugmentation1/
Dobservable.ts23 filter(pred: (e:T) => boolean): Observable<T>;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationExtendFileModule1/
Dobservable.ts23 filter(pred: (e:T) => boolean): Observable<T>;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationDeclarationEmit1/
Dobservable.ts23 filter(pred: (e:T) => boolean): Observable<T>;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationExtendFileModule2/
Dobservable.ts23 filter(pred: (e:T) => boolean): Observable<T>;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationDeclarationEmit2/
Dobservable.ts23 filter(pred: (e:T) => boolean): Observable<T>;
/arkcompiler/runtime_core/scripts/
Dmemdump.py87 def filter(self, space, stacktrace): member in Filter
189 if not space_filter.filter(space, stacktrace):
227 allocs = get_allocs(args, Filter(space_filter, args.filter))
/arkcompiler/ets_frontend/ts2panda/tests/statements/
DforIn.test.ts74 let jumps = insns.filter(item => (item instanceof Jmp || item instanceof Jeqz));
152 let jumps = insns.filter(item => (item instanceof Jmp || item instanceof Jeqz));
189 let jumps = insns.filter(item => (item instanceof Jmp || item instanceof Jeqz));

123