TypeScript/tests/baselines/reference/emitClassDeclarationWithConstructorInES6.types

63 lines
2.8 KiB
Plaintext
Raw Normal View History

=== tests/cases/conformance/es6/classDeclaration/emitClassDeclarationWithConstructorInES6.ts ===
2015-03-16 05:40:15 +01:00
class A {
2015-04-13 23:01:57 +02:00
>A : A, Symbol(A, Decl(emitClassDeclarationWithConstructorInES6.ts, 0, 0))
y: number;
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 0, 9))
constructor(x: number) {
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(emitClassDeclarationWithConstructorInES6.ts, 2, 16))
}
2015-03-16 05:40:15 +01:00
foo(a: any);
2015-04-13 23:01:57 +02:00
>foo : (a: any) => any, Symbol(foo, Decl(emitClassDeclarationWithConstructorInES6.ts, 3, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 4, 16))
>a : any, Symbol(a, Decl(emitClassDeclarationWithConstructorInES6.ts, 4, 8))
2015-03-16 05:40:15 +01:00
foo() { }
2015-04-13 23:01:57 +02:00
>foo : (a: any) => any, Symbol(foo, Decl(emitClassDeclarationWithConstructorInES6.ts, 3, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 4, 16))
}
2015-03-16 05:40:15 +01:00
class B {
2015-04-13 23:01:57 +02:00
>B : B, Symbol(B, Decl(emitClassDeclarationWithConstructorInES6.ts, 6, 1))
y: number;
2015-04-13 23:01:57 +02:00
>y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 8, 9))
x: string = "hello";
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(emitClassDeclarationWithConstructorInES6.ts, 9, 14))
2015-04-13 21:36:11 +02:00
>"hello" : string
2015-03-16 05:40:15 +01:00
_bar: string;
2015-04-13 23:01:57 +02:00
>_bar : string, Symbol(_bar, Decl(emitClassDeclarationWithConstructorInES6.ts, 10, 24))
2015-03-16 05:40:15 +01:00
constructor(x: number, z = "hello", ...args) {
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(emitClassDeclarationWithConstructorInES6.ts, 13, 16))
>z : string, Symbol(z, Decl(emitClassDeclarationWithConstructorInES6.ts, 13, 26))
2015-04-13 21:36:11 +02:00
>"hello" : string
2015-04-13 23:01:57 +02:00
>args : any[], Symbol(args, Decl(emitClassDeclarationWithConstructorInES6.ts, 13, 39))
this.y = 10;
>this.y = 10 : number
2015-04-13 23:01:57 +02:00
>this.y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 8, 9))
>this : B, Symbol(B, Decl(emitClassDeclarationWithConstructorInES6.ts, 6, 1))
>y : number, Symbol(y, Decl(emitClassDeclarationWithConstructorInES6.ts, 8, 9))
2015-04-13 21:36:11 +02:00
>10 : number
}
2015-03-16 05:40:15 +01:00
baz(...args): string;
2015-04-13 23:01:57 +02:00
>baz : (...args: any[]) => string, Symbol(baz, Decl(emitClassDeclarationWithConstructorInES6.ts, 15, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 16, 25))
>args : any[], Symbol(args, Decl(emitClassDeclarationWithConstructorInES6.ts, 16, 8))
2015-03-16 05:40:15 +01:00
baz(z: string, v: number): string {
2015-04-13 23:01:57 +02:00
>baz : (...args: any[]) => string, Symbol(baz, Decl(emitClassDeclarationWithConstructorInES6.ts, 15, 5), Decl(emitClassDeclarationWithConstructorInES6.ts, 16, 25))
>z : string, Symbol(z, Decl(emitClassDeclarationWithConstructorInES6.ts, 17, 8))
>v : number, Symbol(v, Decl(emitClassDeclarationWithConstructorInES6.ts, 17, 18))
2015-03-16 05:40:15 +01:00
return this._bar;
2015-04-13 23:01:57 +02:00
>this._bar : string, Symbol(_bar, Decl(emitClassDeclarationWithConstructorInES6.ts, 10, 24))
>this : B, Symbol(B, Decl(emitClassDeclarationWithConstructorInES6.ts, 6, 1))
>_bar : string, Symbol(_bar, Decl(emitClassDeclarationWithConstructorInES6.ts, 10, 24))
2015-03-16 05:40:15 +01:00
}
}
2015-03-16 05:40:15 +01:00