TypeScript/tests/baselines/reference/sourceMapValidationClass.types
2014-08-15 14:37:48 -07:00

53 lines
1 KiB
Plaintext

=== tests/cases/compiler/sourceMapValidationClass.ts ===
class Greeter {
>Greeter : Greeter
constructor(public greeting: string, ...b: string[]) {
>greeting : string
>b : string[]
}
greet() {
>greet : () => string
return "<h1>" + this.greeting + "</h1>";
>"<h1>" + this.greeting + "</h1>" : string
>"<h1>" + this.greeting : string
>this.greeting : string
>this : Greeter
>greeting : string
}
private x: string;
>x : string
private x1: number = 10;
>x1 : number
private fn() {
>fn : () => string
return this.greeting;
>this.greeting : string
>this : Greeter
>greeting : string
}
get greetings() {
>greetings : string
return this.greeting;
>this.greeting : string
>this : Greeter
>greeting : string
}
set greetings(greetings: string) {
>greetings : string
>greetings : string
this.greeting = greetings;
>this.greeting = greetings : string
>this.greeting : string
>this : Greeter
>greeting : string
>greetings : string
}
}