/arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
D | interfaceExtendsObjectIntersection.ts | 38 type Constructor<T> = new () => T; alias 39 declare function Constructor<T>(): Constructor<T>; function 41 class C1 extends Constructor<I1>() { x: string } 42 class C2 extends Constructor<I2>() { x: string } 43 class C3 extends Constructor<I3>() { x: string } 44 class C4 extends Constructor<I4>() { x: string } 45 class C5 extends Constructor<I5>() { x: string } 46 class C6 extends Constructor<I6>() { x: string } 47 class C7 extends Constructor<I7>() { x: string } 71 class C20 extends Constructor<Partial<T1>>() { x: string } [all …]
|
D | identicalGenericConditionalsWithInferRelated.ts | 50 export type Constructor<T> = new (...args: any[]) => T alias 59 …decode<C extends Constructor<any>>(ctor: C): MappedResult<C extends Constructor<infer T> ? T : nev… 63 …decode<C extends Constructor<any>>(ctor: C): MappedResult<C extends Constructor<infer T> ? T : nev…
|
D | doubleMixinConditionalTypeBaseClassWorks.ts | 21 type Constructor = new (...args: any[]) => {}; 23 const Mixin1 = <C extends Constructor>(Base: C) => class extends Base { private _fooPrivate: {}; 26 AssertType(<C extends Constructor>(Base: C) => class extends Base { private _fooPrivate: {}; }, "<C… 35 type FooConstructor = typeof Mixin1 extends (a: Constructor) => infer Cls ? Cls : never;
|
D | mixinIntersectionIsValidbaseType.ts | 21 export type Constructor<T extends object = object> = new (...args: any[]) => T; 30 export const Serializable = <K extends Constructor<Initable> & Initable>( 32 AssertType(<K extends Constructor<Initable> & Initable>( SuperClass: K) => { const LocalMixin… 60 const AMixin = <K extends Constructor<Initable> & Initable>(SuperClass: K) => { 62 AssertType(<K extends Constructor<Initable> & Initable>(SuperClass: K) => { let SomeHowOkay = cl…
|
D | mixinClassesAnnotated.ts | 21 type Constructor<T> = new(...args: any[]) => T; 41 const Printable = <T extends Constructor<Base>>(superClass: T): Constructor<Printable> & { message:… 43 AssertType(<T extends Constructor<Base>>(superClass: T): Constructor<Printable> & { message: string… 73 function Tagged<T extends Constructor<{}>>(superClass: T): Constructor<Tagged> & T {
|
D | declarationEmitLocalClassDeclarationMixin.ts | 21 interface Constructor<C> { new (...args: any[]): C; } 23 function mixin<B extends Constructor<{}>>(Base: B) { 41 function Filter<C extends Constructor<{}>>(ctor: C) {
|
D | mixinClassesAnonymous.ts | 21 type Constructor<T> = new(...args: any[]) => T; 37 const Printable = <T extends Constructor<Base>>(superClass: T) => class extends superClass { 39 AssertType(<T extends Constructor<Base>>(superClass: T) => class extends superClass { static mes… 62 function Tagged<T extends Constructor<{}>>(superClass: T) { 161 const Timestamped = <CT extends Constructor<object>>(Base: CT) => { 164 AssertType(<CT extends Constructor<object>>(Base: CT) => { return class extends Base { ti…
|
D | genericInheritedDefaultConstructors.ts | 22 interface Constructor<T> { 29 let c:Constructor<B<boolean>> = B; // shouldn't error here
|
D | overrideBaseIntersectionMethod.ts | 23 type Constructor<T> = new (...args: any[]) => T; 25 const WithLocation = <T extends Constructor<Point>>(Base: T) => class extends Base { 29 AssertType(<T extends Constructor<Point>>(Base: T) => class extends Base { getLocation(): [number,…
|
D | mixingApparentTypeOverrides.ts | 21 type Constructor<T> = new(...args: any[]) => T; 22 function Tagged<T extends Constructor<{}>>(Base: T) {
|
D | emitClassExpressionInDeclarationFile.ts | 63 export type Constructor<T> = new(...args: any[]) => T; alias 64 export function WithTags<T extends Constructor<FooItem>>(Base: T) {
|
/arkcompiler/ets_frontend/es2panda/test/type_extractor/testcases_with_assert/ |
D | test-class-extends-constructor-type.ts | 19 type Constructor<T> = new (...args: any[]) => T; 25 function Eventify<TBase> (base: Constructor<TBase>): Constructor<TBase & IEventified> { 28 return Eventified as unknown as Constructor<TBase & IEventified>;
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/exportClassExtendingIntersection/ |
D | MixinClass.ts | 21 import { Constructor, MyBaseClass } from './BaseClass'; 27 export function MyMixin<T extends Constructor<MyBaseClass<any>>>(base: T): T & Constructor<MyMixin>…
|
D | BaseClass.ts | 22 export type Constructor<T> = new (...args: any[]) => T;
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/declarationsForFileShadowingGlobalNoError/ |
D | index.ts | 24 type Constructor = new (...args: any[]) => any alias 26 export const mixin = (Base: Constructor) => { 29 AssertType((Base: Constructor) => { return class extends Base { get(domNode: DOMNode) {} }}, "…
|
/arkcompiler/ets_runtime/ecmascript/ |
D | runtime_call_id.h | 235 V(Array, Constructor) \ 279 V(ArrayBuffer, Constructor) \ 288 V(SharedArrayBuffer, Constructor) \ 298 V(AsyncFunction, Constructor) \ 301 V(Boolean, Constructor) \ 319 V(DataView, Constructor) \ 347 V(Date, Constructor) \ 360 V(DateTimeFormat, Constructor) \ 368 V(DisplayNames, Constructor) \ 391 V(Function, Constructor) \ [all …]
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/amdDeclarationEmitNoExtraDeclare/ |
D | Configurable.ts | 21 export type Constructor<T> = { 24 export function Configurable<T extends Constructor<{}>>(base: T): T {
|
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/anonClassDeclarationEmitIsAnon/ |
D | wrapClass.ts | 35 export type Constructor<T = {}> = new (...args: any[]) => T; alias 37 export function Timestamped<TBase extends Constructor>(Base: TBase) {
|
/arkcompiler/ets_frontend/es2panda/test/parser/ts/ |
D | test-class-constructor2-expected.txt | 1 SyntaxError: Constructor implementation is missing. [test-class-constructor2.ts:21:5]
|
D | test-class-constructor6-expected.txt | 1 SyntaxError: Constructor implementation is missing. [test-class-constructor6.ts:19:5]
|
D | test-class-constructor4-expected.txt | 1 SyntaxError: Constructor implementation is missing. [test-class-constructor4.ts:18:5]
|
D | test-class-constructor1-expected.txt | 1 SyntaxError: Constructor implementation is missing. [test-class-constructor1.ts:20:5]
|
/arkcompiler/ets_frontend/es2panda/test/parser/js/ |
D | test-class-definition5-expected.txt | 1 SyntaxError: Constructor can not be special method [test-class-definition5.js:18:7]
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_async_function.cpp | 25 BUILTINS_API_TRACE(argv->GetThread(), AsyncFunction, Constructor); in AsyncFunctionConstructor()
|
/arkcompiler/ets_runtime/test/fuzztest/functionrefconstructor_fuzzer/ |
D | functionrefconstructor_fuzzer.cpp | 44 func->Constructor(vm, argv, 1); in FunctionRefConstructorFuzzTest()
|