TypeScript/tests/baselines/reference/sourceMapValidationDecorators.types

183 lines
6.1 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;
>ClassDecorator1 : (target: Function) => void
>target : Function
>Function : Function
2015-03-18 19:17:26 +01:00
declare function ClassDecorator2(x: number): (target: Function) => void;
>ClassDecorator2 : (x: number) => (target: Function) => void
>x : number
>target : Function
>Function : Function
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;
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
>target : Object
>Object : Object
>key : string | symbol
>descriptor : PropertyDescriptor
>PropertyDescriptor : PropertyDescriptor
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;
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
>x : number
>target : Object
>Object : Object
>key : string | symbol
>descriptor : PropertyDescriptor
>PropertyDescriptor : PropertyDescriptor
2015-03-18 19:17:26 +01:00
declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void;
>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void
>target : Object
>Object : Object
>key : string | symbol
>paramIndex : number
2015-03-18 19:17:26 +01:00
declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void;
>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void
>x : number
>target : Object
>Object : Object
>key : string | symbol
>paramIndex : number
2015-03-18 19:17:26 +01:00
@ClassDecorator1
>ClassDecorator1 : (target: Function) => void
2015-03-18 19:17:26 +01:00
@ClassDecorator2(10)
>ClassDecorator2(10) : (target: Function) => void
>ClassDecorator2 : (x: number) => (target: Function) => void
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-18 19:17:26 +01:00
class Greeter {
>Greeter : Greeter
2015-03-18 19:17:26 +01:00
constructor(
@ParameterDecorator1
>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(20)
>ParameterDecorator2(20) : (target: Object, key: string | symbol, paramIndex: number) => void
>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void
2015-04-13 21:36:11 +02:00
>20 : number
2015-03-18 19:17:26 +01:00
public greeting: string,
>greeting : string
2015-03-18 19:17:26 +01:00
@ParameterDecorator1
>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(30)
>ParameterDecorator2(30) : (target: Object, key: string | symbol, paramIndex: number) => void
>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void
2015-04-13 21:36:11 +02:00
>30 : number
2015-03-18 19:17:26 +01:00
...b: string[]) {
>b : string[]
2015-03-18 19:17:26 +01:00
}
@PropertyDecorator1
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
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
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 21:36:11 +02:00
>40 : number
2015-03-18 19:17:26 +01:00
greet() {
>greet : () => string
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
>this.greeting : string
>this : Greeter
>greeting : string
2015-04-13 21:36:11 +02:00
>"</h1>" : string
2015-03-18 19:17:26 +01:00
}
@PropertyDecorator1
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
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
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 21:36:11 +02:00
>50 : number
2015-03-18 19:17:26 +01:00
private x: string;
>x : string
2015-03-18 19:17:26 +01:00
@PropertyDecorator1
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
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
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 21:36:11 +02:00
>60 : number
2015-03-18 19:17:26 +01:00
private static x1: number = 10;
>x1 : number
2015-04-13 21:36:11 +02:00
>10 : number
2015-03-18 19:17:26 +01:00
private fn(
>fn : (x: number) => string
2015-03-18 19:17:26 +01:00
@ParameterDecorator1
>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(70)
>ParameterDecorator2(70) : (target: Object, key: string | symbol, paramIndex: number) => void
>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void
2015-04-13 21:36:11 +02:00
>70 : number
2015-03-18 19:17:26 +01:00
x: number) {
>x : number
2015-03-18 19:17:26 +01:00
return this.greeting;
>this.greeting : string
>this : Greeter
>greeting : string
2015-03-18 19:17:26 +01:00
}
@PropertyDecorator1
>PropertyDecorator1 : (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
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
>PropertyDecorator2 : (x: number) => (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void
2015-04-13 21:36:11 +02:00
>80 : number
2015-03-18 19:17:26 +01:00
get greetings() {
>greetings : string
2015-03-18 19:17:26 +01:00
return this.greeting;
>this.greeting : string
>this : Greeter
>greeting : string
2015-03-18 19:17:26 +01:00
}
set greetings(
>greetings : string
2015-03-18 19:17:26 +01:00
@ParameterDecorator1
>ParameterDecorator1 : (target: Object, key: string | symbol, paramIndex: number) => void
2015-03-18 19:17:26 +01:00
@ParameterDecorator2(90)
>ParameterDecorator2(90) : (target: Object, key: string | symbol, paramIndex: number) => void
>ParameterDecorator2 : (x: number) => (target: Object, key: string | symbol, paramIndex: number) => void
2015-04-13 21:36:11 +02:00
>90 : number
2015-03-18 19:17:26 +01:00
greetings: string) {
>greetings : string
2015-03-18 19:17:26 +01:00
this.greeting = greetings;
>this.greeting = greetings : string
>this.greeting : string
>this : Greeter
>greeting : string
>greetings : string
2015-03-25 01:00:29 +01:00
}
2015-03-18 19:17:26 +01:00
}