/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | booleanFilterAnyArray.ts | 28 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 …]
|
D | objectInstantiationFromUnionSpread.ts | 34 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)[]) => …
|
D | thisTypeInTypePredicate.ts | 21 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[]");
|
D | contravariantInferenceAndTypeGuard.ts | 30 …filter<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…
|
D | nonInferrableTypePropagation2.ts | 41 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…
|
D | declarationEmitPromise.ts | 27 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>[]) …
|
D | typePredicateFreshLiteralWidening.ts | 88 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[…
|
D | typeInferenceTypePredicate2.ts | 22 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)
|
D | arrayFilter.ts | 45 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;…
|
D | genericMethodOverspecialization.ts | 57 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[]");
|
D | genericTypeParameterEquivalence2.ts | 60 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[]");
|
D | inferFromGenericFunctionReturnTypes2.ts | 240 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 …]
|
D | genericContextualTypes1.ts | 132 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/ |
D | filter_helper.h | 40 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()
|
D | layout_info.cpp | 89 … 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/ |
D | asmstackoverflow.js | 59 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/ |
D | conditions.test.ts | 46 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/ |
D | observable.ts | 23 filter(pred: (e:T) => boolean): Observable<T>;
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationCollidingNamesInAugmentation1/ |
D | observable.ts | 23 filter(pred: (e:T) => boolean): Observable<T>;
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationExtendFileModule1/ |
D | observable.ts | 23 filter(pred: (e:T) => boolean): Observable<T>;
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationDeclarationEmit1/ |
D | observable.ts | 23 filter(pred: (e:T) => boolean): Observable<T>;
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationExtendFileModule2/ |
D | observable.ts | 23 filter(pred: (e:T) => boolean): Observable<T>;
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/moduleAugmentationDeclarationEmit2/ |
D | observable.ts | 23 filter(pred: (e:T) => boolean): Observable<T>;
|
/arkcompiler/runtime_core/scripts/ |
D | memdump.py | 87 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/ |
D | forIn.test.ts | 74 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));
|