Home
last modified time | relevance | path

Searched refs:Constructor (Results 1 – 25 of 89) sorted by relevance

1234

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DinterfaceExtendsObjectIntersection.ts38 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 …]
DidenticalGenericConditionalsWithInferRelated.ts50 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…
DdoubleMixinConditionalTypeBaseClassWorks.ts21 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;
DmixinIntersectionIsValidbaseType.ts21 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…
DmixinClassesAnnotated.ts21 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 {
DdeclarationEmitLocalClassDeclarationMixin.ts21 interface Constructor<C> { new (...args: any[]): C; }
23 function mixin<B extends Constructor<{}>>(Base: B) {
41 function Filter<C extends Constructor<{}>>(ctor: C) {
DmixinClassesAnonymous.ts21 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…
DgenericInheritedDefaultConstructors.ts22 interface Constructor<T> {
29 let c:Constructor<B<boolean>> = B; // shouldn't error here
DoverrideBaseIntersectionMethod.ts23 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,…
DmixingApparentTypeOverrides.ts21 type Constructor<T> = new(...args: any[]) => T;
22 function Tagged<T extends Constructor<{}>>(Base: T) {
DemitClassExpressionInDeclarationFile.ts63 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/
Dtest-class-extends-constructor-type.ts19 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/
DMixinClass.ts21 import { Constructor, MyBaseClass } from './BaseClass';
27 export function MyMixin<T extends Constructor<MyBaseClass<any>>>(base: T): T & Constructor<MyMixin>…
DBaseClass.ts22 export type Constructor<T> = new (...args: any[]) => T;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/declarationsForFileShadowingGlobalNoError/
Dindex.ts24 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/
Druntime_call_id.h235 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/
DConfigurable.ts21 export type Constructor<T> = {
24 export function Configurable<T extends Constructor<{}>>(base: T): T {
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/anonClassDeclarationEmitIsAnon/
DwrapClass.ts35 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/
Dtest-class-constructor2-expected.txt1 SyntaxError: Constructor implementation is missing. [test-class-constructor2.ts:21:5]
Dtest-class-constructor6-expected.txt1 SyntaxError: Constructor implementation is missing. [test-class-constructor6.ts:19:5]
Dtest-class-constructor4-expected.txt1 SyntaxError: Constructor implementation is missing. [test-class-constructor4.ts:18:5]
Dtest-class-constructor1-expected.txt1 SyntaxError: Constructor implementation is missing. [test-class-constructor1.ts:20:5]
/arkcompiler/ets_frontend/es2panda/test/parser/js/
Dtest-class-definition5-expected.txt1 SyntaxError: Constructor can not be special method [test-class-definition5.js:18:7]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_async_function.cpp25 BUILTINS_API_TRACE(argv->GetThread(), AsyncFunction, Constructor); in AsyncFunctionConstructor()
/arkcompiler/ets_runtime/test/fuzztest/functionrefconstructor_fuzzer/
Dfunctionrefconstructor_fuzzer.cpp44 func->Constructor(vm, argv, 1); in FunctionRefConstructorFuzzTest()

1234