TypeScript/tests/baselines/reference/sourceMapValidationDecorators.types

183 lines
11 KiB
Plaintext
Raw Normal View History

2015-03-18 19:17:26 +01:00
=== tests/cases/compiler/sourceMapValidationDecorators.ts ===
declare function ClassDecorator1(target: Function): void;
2015-04-13 23:01:57 +02:00
>ClassDecorator1 : (target: Function) => void, Symbol(ClassDecorator1, Decl(sourceMapValidationDecorators.ts, 0, 0))
>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 0, 33))
>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11))
2015-03-18 19:17:26 +01:00
declare function ClassDecorator2(x: number): (target: Function) => void;
2015-04-13 23:01:57 +02:00
>ClassDecorator2 : (x: number) => (target: Function) => void, Symbol(ClassDecorator2, Decl(sourceMapValidationDecorators.ts, 0, 57))
>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 1, 33))
>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 1, 46))
>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11))
2015-03-18 19:17:26 +01:00
2015-03-25 01:00:29 +01:00
declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void;
2015-04-13 23:01:57 +02:00
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72))
>target : Object, Symbol(target, Decl(sourceMapValidationDecorators.ts, 2, 36))
>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 2, 51))
>descriptor : PropertyDescriptor, Symbol(descriptor, Decl(sourceMapValidationDecorators.ts, 2, 73))
>PropertyDescriptor : PropertyDescriptor, Symbol(PropertyDescriptor, Decl(lib.d.ts, 79, 66))
2015-03-18 19:17:26 +01:00
2015-03-25 01:00:29 +01:00
declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void;
2015-04-13 23:01:57 +02:00
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113))
>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 3, 36))
>target : Object, Symbol(target, Decl(sourceMapValidationDecorators.ts, 3, 49))
>Object : Object, Symbol(Object, Decl(lib.d.ts, 92, 1), Decl(lib.d.ts, 223, 11))
>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 3, 64))
>descriptor : PropertyDescriptor, Symbol(descriptor, Decl(sourceMapValidationDecorators.ts, 3, 86))
>PropertyDescriptor : PropertyDescriptor, Symbol(PropertyDescriptor, Decl(lib.d.ts, 79, 66))
2015-03-18 19:17:26 +01:00
2015-03-25 01:00:29 +01:00
declare function ParameterDecorator1(target: Function, key: string | symbol, paramIndex: number): void;
2015-04-13 23:01:57 +02:00
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128))
>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 4, 37))
>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11))
>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 4, 54))
>paramIndex : number, Symbol(paramIndex, Decl(sourceMapValidationDecorators.ts, 4, 76))
2015-03-18 19:17:26 +01:00
2015-03-25 01:00:29 +01:00
declare function ParameterDecorator2(x: number): (target: Function, key: string | symbol, paramIndex: number) => void;
2015-04-13 23:01:57 +02:00
>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103))
>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 5, 37))
>target : Function, Symbol(target, Decl(sourceMapValidationDecorators.ts, 5, 50))
>Function : Function, Symbol(Function, Decl(lib.d.ts, 223, 38), Decl(lib.d.ts, 269, 11))
>key : string | symbol, Symbol(key, Decl(sourceMapValidationDecorators.ts, 5, 67))
>paramIndex : number, Symbol(paramIndex, Decl(sourceMapValidationDecorators.ts, 5, 89))
2015-03-18 19:17:26 +01:00
@ClassDecorator1
2015-04-13 23:01:57 +02:00
>ClassDecorator1 : (target: Function) => void, Symbol(ClassDecorator1, Decl(sourceMapValidationDecorators.ts, 0, 0))
2015-03-18 19:17:26 +01:00
@ClassDecorator2(10)
>ClassDecorator2(10) : (target: Function) => void
2015-04-13 23:01:57 +02:00
>ClassDecorator2 : (x: number) => (target: Function) => void, Symbol(ClassDecorator2, Decl(sourceMapValidationDecorators.ts, 0, 57))
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-18 19:17:26 +01:00
class Greeter {
2015-04-13 23:01:57 +02:00
>Greeter : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118))
2015-03-18 19:17:26 +01:00
constructor(
@ParameterDecorator1
2015-04-13 23:01:57 +02:00
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128))
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(20)
2015-03-25 01:00:29 +01:00
>ParameterDecorator2(20) : (target: Function, key: string | symbol, paramIndex: number) => void
2015-04-13 23:01:57 +02:00
>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103))
2015-04-13 21:36:11 +02:00
>20 : number
2015-03-18 19:17:26 +01:00
public greeting: string,
2015-04-13 23:01:57 +02:00
>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
2015-03-18 19:17:26 +01:00
@ParameterDecorator1
2015-04-13 23:01:57 +02:00
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128))
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(30)
2015-03-25 01:00:29 +01:00
>ParameterDecorator2(30) : (target: Function, key: string | symbol, paramIndex: number) => void
2015-04-13 23:01:57 +02:00
>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103))
2015-04-13 21:36:11 +02:00
>30 : number
2015-03-18 19:17:26 +01:00
...b: string[]) {
2015-04-13 23:01:57 +02:00
>b : string[], Symbol(b, Decl(sourceMapValidationDecorators.ts, 13, 30))
2015-03-18 19:17:26 +01:00
}
@PropertyDecorator1
2015-04-13 23:01:57 +02:00
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72))
2015-03-18 19:17:26 +01:00
@PropertyDecorator2(40)
2015-03-25 01:00:29 +01:00
>PropertyDecorator2(40) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 23:01:57 +02:00
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113))
2015-04-13 21:36:11 +02:00
>40 : number
2015-03-18 19:17:26 +01:00
greet() {
2015-04-13 23:01:57 +02:00
>greet : () => string, Symbol(greet, Decl(sourceMapValidationDecorators.ts, 18, 5))
2015-03-18 19:17:26 +01:00
return "<h1>" + this.greeting + "</h1>";
>"<h1>" + this.greeting + "</h1>" : string
>"<h1>" + this.greeting : string
2015-04-13 21:36:11 +02:00
>"<h1>" : string
2015-04-13 23:01:57 +02:00
>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118))
>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
2015-04-13 21:36:11 +02:00
>"</h1>" : string
2015-03-18 19:17:26 +01:00
}
@PropertyDecorator1
2015-04-13 23:01:57 +02:00
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72))
2015-03-18 19:17:26 +01:00
@PropertyDecorator2(50)
2015-03-25 01:00:29 +01:00
>PropertyDecorator2(50) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 23:01:57 +02:00
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113))
2015-04-13 21:36:11 +02:00
>50 : number
2015-03-18 19:17:26 +01:00
private x: string;
2015-04-13 23:01:57 +02:00
>x : string, Symbol(x, Decl(sourceMapValidationDecorators.ts, 24, 5))
2015-03-18 19:17:26 +01:00
@PropertyDecorator1
2015-04-13 23:01:57 +02:00
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72))
2015-03-18 19:17:26 +01:00
@PropertyDecorator2(60)
2015-03-25 01:00:29 +01:00
>PropertyDecorator2(60) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 23:01:57 +02:00
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113))
2015-04-13 21:36:11 +02:00
>60 : number
2015-03-18 19:17:26 +01:00
private static x1: number = 10;
2015-04-13 23:01:57 +02:00
>x1 : number, Symbol(Greeter.x1, Decl(sourceMapValidationDecorators.ts, 28, 22))
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-18 19:17:26 +01:00
private fn(
2015-04-13 23:01:57 +02:00
>fn : (x: number) => string, Symbol(fn, Decl(sourceMapValidationDecorators.ts, 32, 35))
2015-03-18 19:17:26 +01:00
@ParameterDecorator1
2015-04-13 23:01:57 +02:00
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128))
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(70)
2015-03-25 01:00:29 +01:00
>ParameterDecorator2(70) : (target: Function, key: string | symbol, paramIndex: number) => void
2015-04-13 23:01:57 +02:00
>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103))
2015-04-13 21:36:11 +02:00
>70 : number
2015-03-18 19:17:26 +01:00
x: number) {
2015-04-13 23:01:57 +02:00
>x : number, Symbol(x, Decl(sourceMapValidationDecorators.ts, 34, 15))
2015-03-18 19:17:26 +01:00
return this.greeting;
2015-04-13 23:01:57 +02:00
>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118))
>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
2015-03-18 19:17:26 +01:00
}
@PropertyDecorator1
2015-04-13 23:01:57 +02:00
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator1, Decl(sourceMapValidationDecorators.ts, 1, 72))
2015-03-18 19:17:26 +01:00
@PropertyDecorator2(80)
2015-03-25 01:00:29 +01:00
>PropertyDecorator2(80) : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 23:01:57 +02:00
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void, Symbol(PropertyDecorator2, Decl(sourceMapValidationDecorators.ts, 2, 113))
2015-04-13 21:36:11 +02:00
>80 : number
2015-03-18 19:17:26 +01:00
get greetings() {
2015-04-13 23:01:57 +02:00
>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 39, 5), Decl(sourceMapValidationDecorators.ts, 45, 5))
2015-03-18 19:17:26 +01:00
return this.greeting;
2015-04-13 23:01:57 +02:00
>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118))
>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
2015-03-18 19:17:26 +01:00
}
set greetings(
2015-04-13 23:01:57 +02:00
>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 39, 5), Decl(sourceMapValidationDecorators.ts, 45, 5))
2015-03-18 19:17:26 +01:00
@ParameterDecorator1
2015-04-13 23:01:57 +02:00
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator1, Decl(sourceMapValidationDecorators.ts, 3, 128))
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(90)
2015-03-25 01:00:29 +01:00
>ParameterDecorator2(90) : (target: Function, key: string | symbol, paramIndex: number) => void
2015-04-13 23:01:57 +02:00
>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void, Symbol(ParameterDecorator2, Decl(sourceMapValidationDecorators.ts, 4, 103))
2015-04-13 21:36:11 +02:00
>90 : number
2015-03-18 19:17:26 +01:00
greetings: string) {
2015-04-13 23:01:57 +02:00
>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 47, 18))
2015-03-18 19:17:26 +01:00
this.greeting = greetings;
>this.greeting = greetings : string
2015-04-13 23:01:57 +02:00
>this.greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
>this : Greeter, Symbol(Greeter, Decl(sourceMapValidationDecorators.ts, 5, 118))
>greeting : string, Symbol(greeting, Decl(sourceMapValidationDecorators.ts, 10, 16))
>greetings : string, Symbol(greetings, Decl(sourceMapValidationDecorators.ts, 47, 18))
2015-03-25 01:00:29 +01:00
}
2015-03-18 19:17:26 +01:00
}