Home
last modified time | relevance | path

Searched refs:super (Results 1 – 25 of 1804) sorted by relevance

12345678910>>...73

/third_party/typescript/tests/baselines/reference/
DasyncMethodWithSuper_es6.types17 // async method with only call/get on 'super' does not require a binding
22 super.x();
23 >super.x() : void
24 >super.x : () => void
25 >super : A
29 super.y();
30 >super.y() : void
31 >super.y : () => void
32 >super : A
36 super["x"]();
[all …]
DerrorSuperPropertyAccess.types2 //super property access in constructor of class with no base type
3 //super property access in instance member function of class with no base type
4 //super property access in instance member accessor(get and set) of class with no base type
9 var a = super.prototype;
11 >super.prototype : any
12 >super : any
15 var b = super.hasOwnProperty('');
17 >super.hasOwnProperty('') : any
18 >super.hasOwnProperty : any
19 >super : any
[all …]
DsuperInLambdas.types25 super();
26 >super() : void
27 >super : typeof User
29 // super call in a constructor
30 super.sayHello();
31 >super.sayHello() : void
32 >super.sayHello : () => void
33 >super : User
36 // super call in a lambda in a constructor
37 var x = () => super.sayHello();
[all …]
DsuperErrors.types5 // super in a non class context
6 var x = super;
8 >super : any
9 >super : any
12 var y = () => super;
14 >() => super : () => any
15 >super : any
16 >super : any
19 var z = () => () => () => super;
21 >() => () => () => super : () => () => () => any
[all …]
DsuperInObjectLiterals_ES5.types4super.method(); }, get prop() { super.method(); return 10; }, set prop(v…
17 super.method();
18 >super.method() : any
19 >super.method : any
20 >super : any
27 super.method();
28 >super.method() : any
29 >super.method : any
30 >super : any
41 super.method();
[all …]
DsuperInObjectLiterals_ES6.types4super.method(); }, get prop() { super.method(); return 10; }, set prop(v…
17 super.method();
18 >super.method() : any
19 >super.method : any
20 >super : any
27 super.method();
28 >super.method() : any
29 >super.method : any
30 >super : any
41 super.method();
[all …]
DerrorSuperCalls.types2 //super call in class constructor with no base type
7 super();
8 >super() : void
9 >super : any
12 //super call in class member function with no base type
16 super();
17 >super() : void
18 >super : any
21 //super call in class accessor (get and set) with no base type
25 super();
[all …]
DsuperAccess2.types16 xx = super;
18 >super : any
19 >super : P
22 static yy = super; // error for static initializer accessing super
24 >super : any
25 >super : typeof P
29 constructor(public z = super, zz = super, zzz = () => super) {
31 >super : any
32 >super : any
35 >super : any
[all …]
DasyncMethodWithSuper_es5.types17 // async method with only call/get on 'super' does not require a binding
22 super.x();
23 >super.x() : void
24 >super.x : () => void
25 >super : A
29 super.y();
30 >super.y() : void
31 >super.y : () => void
32 >super : A
36 super["x"]();
[all …]
DasyncMethodWithSuper_es2017.types17 // async method with only call/get on 'super' does not require a binding
22 super.x();
23 >super.x() : void
24 >super.x : () => void
25 >super : A
29 super.y();
30 >super.y() : void
31 >super.y : () => void
32 >super : A
36 super["x"]();
[all …]
DderivedClassSuperProperties.types25 super.receivesAnything();
26 >super.receivesAnything() : void
27 >super.receivesAnything : (param?: any) => void
28 >super : Base
31 super();
32 >super() : void
33 >super : typeof Base
46 super.receivesAnything(this);
47 >super.receivesAnything(this) : void
48 >super.receivesAnything : (param?: any) => void
[all …]
DsuperCallInNonStaticMethod.types18 super.instanceMethod();
19 >super.instanceMethod() : void
20 >super.instanceMethod : () => void
21 >super : Doing
30 >() => { super.instanceMethod(); } : () => void
32 super.instanceMethod();
33 >super.instanceMethod() : void
34 >super.instanceMethod : () => void
35 >super : Doing
45 >{ a: () => { super.instanceMethod(); }, b: super.i…
[all …]
DasyncMethodWithSuperConflict_es6.types17 // async method with only call/get on 'super' does not require a binding
30 super.x();
31 >super.x() : void
32 >super.x : () => void
33 >super : A
37 super.y();
38 >super.y() : void
39 >super.y : () => void
40 >super : A
44 super["x"]();
[all …]
Dsuper.symbols1 === tests/cases/compiler/super.ts ===
3 >Base : Symbol(Base, Decl(super.ts, 0, 0))
7 >x : Symbol(x, Decl(super.ts, 2, 11))
10 >foo : Symbol(Base.foo, Decl(super.ts, 3, 5))
16 >bar : Symbol(Base.bar, Decl(super.ts, 6, 5))
23 >Sub1 : Symbol(Sub1, Decl(super.ts, 11, 1))
24 >Base : Symbol(Base, Decl(super.ts, 0, 0))
27 >foo : Symbol(Sub1.foo, Decl(super.ts, 13, 25))
29 return "sub1" + super.foo() + super.bar();
30 >super.foo : Symbol(Base.foo, Decl(super.ts, 3, 5))
[all …]
DtypeOfThisInStaticMembers9(target=esnext).types14 static arrowFunctionBoundary = () => super.f + 1;
16 >() => super.f + 1 : () => number
17 >super.f + 1 : number
18 >super.f : number
19 >super : typeof C
23 static functionExprBoundary = function () { return super.f + 2 };
25 >function () { return super.f + 2 } : () => any
26 >super.f + 2 : any
27 >super.f : any
28 >super : any
[all …]
DtypeOfThisInStaticMembers9(target=es6).types14 static arrowFunctionBoundary = () => super.f + 1;
16 >() => super.f + 1 : () => number
17 >super.f + 1 : number
18 >super.f : number
19 >super : typeof C
23 static functionExprBoundary = function () { return super.f + 2 };
25 >function () { return super.f + 2 } : () => any
26 >super.f + 2 : any
27 >super.f : any
28 >super : any
[all …]
DtypeOfThisInStaticMembers9(target=es5).types14 static arrowFunctionBoundary = () => super.f + 1;
16 >() => super.f + 1 : () => number
17 >super.f + 1 : number
18 >super.f : number
19 >super : typeof C
23 static functionExprBoundary = function () { return super.f + 2 };
25 >function () { return super.f + 2 } : () => any
26 >super.f + 2 : any
27 >super.f : any
28 >super : any
[all …]
DtypeOfThisInStaticMembers9(target=es2022).types14 static arrowFunctionBoundary = () => super.f + 1;
16 >() => super.f + 1 : () => number
17 >super.f + 1 : number
18 >super.f : number
19 >super : typeof C
23 static functionExprBoundary = function () { return super.f + 2 };
25 >function () { return super.f + 2 } : () => any
26 >super.f + 2 : any
27 >super.f : any
28 >super : any
[all …]
DsuperPropertyAccessNoError.types2 //super.publicInstanceMemberFunction in constructor of derived class
3 //super.publicInstanceMemberFunction in instance member function of derived class
4 //super.publicInstanceMemberFunction in instance member accessor(get and set) of derived class
5 //super.publicInstanceMemberFunction in lambda in member function
6 //super.publicStaticMemberFunction in static member function of derived class
7 //super.publicStaticMemberFunction in static member accessor(get and set) of derived class
40 super();
41 >super() : void
42 >super : typeof SomeBaseClass
44 var x = super.func();
[all …]
DsuperCallInStaticMethod.types18 super.staticMethod();
19 >super.staticMethod() : void
20 >super.staticMethod : () => void
21 >super : typeof Doing
30 >() => { super.staticMethod(); } : () => void
32 super.staticMethod();
33 >super.staticMethod() : void
34 >super.staticMethod : () => void
35 >super : typeof Doing
45 >{ a: () => { super.staticMethod(); }, b: super.sta…
[all …]
DasyncMethodWithSuper_es6.symbols17 // async method with only call/get on 'super' does not require a binding
22 super.x();
23 >super.x : Symbol(A.x, Decl(asyncMethodWithSuper_es6.ts, 0, 9))
24 >super : Symbol(A, Decl(asyncMethodWithSuper_es6.ts, 0, 0))
28 super.y();
29 >super.y : Symbol(A.y, Decl(asyncMethodWithSuper_es6.ts, 2, 5))
30 >super : Symbol(A, Decl(asyncMethodWithSuper_es6.ts, 0, 0))
34 super["x"]();
35 >super : Symbol(A, Decl(asyncMethodWithSuper_es6.ts, 0, 0))
39 const a = super.x;
[all …]
DcheckSuperCallBeforeThisAccess.types27 let a3 = super.x; // Error
29 >super.x : number
30 >super : A
45 let a6 = () => super.x;
47 >() => super.x : () => number
48 >super.x : number
49 >super : A
57 super();
58 >super() : void
59 >super : typeof A
[all …]
DerrorSuperPropertyAccess.symbols2 //super property access in constructor of class with no base type
3 //super property access in instance member function of class with no base type
4 //super property access in instance member accessor(get and set) of class with no base type
9 var a = super.prototype;
12 var b = super.hasOwnProperty('');
19 var a = super.prototype;
22 var b = super.hasOwnProperty('');
26 m = super.prototype;
29 n = super.hasOwnProperty('');
32 //super static property access in static member function of class with no base type
[all …]
DsuperPropertyAccess1.types26 super.bar();
27 >super.bar() : void
28 >super.bar : () => void
29 >super : C
32 super.x; // error
33 >super.x : number
34 >super : C
39 super();
40 >super() : void
41 >super : typeof C
[all …]
DsuperPropertyAccess.types42super.m1("hi"); // Should be allowed, method on base prototype
43 >super.m1("hi") : string
44 >super.m1 : (a: string) => string
45 >super : MyBase
49 …var l2 = super.m1.bind(this); // Should be allowed, can access properties as…
51 >super.m1.bind(this) : any
52 >super.m1.bind : (this: Function, thisArg: any, ...argArray: any[]) => any
53 >super.m1 : (a: string) => string
54 >super : MyBase
59 …var x: (a: string) => string = super.m1; // Should be allowed, can assign to var with c…
[all …]

12345678910>>...73