2015-03-18 19:17:26 +01:00
|
|
|
=== tests/cases/compiler/sourceMapValidationDecorators.ts ===
|
|
|
|
declare function ClassDecorator1(target: Function): void;
|
2015-04-16 01:44:20 +02:00
|
|
|
>ClassDecorator1 : (target: Function) => void
|
|
|
|
>target : Function
|
|
|
|
>Function : Function
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
declare function ClassDecorator2(x: number): (target: Function) => void;
|
2015-04-16 01:44:20 +02:00
|
|
|
>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;
|
2015-04-16 01:44:20 +02:00
|
|
|
>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;
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
|
|
|
2015-03-25 01:00:29 +01:00
|
|
|
declare function ParameterDecorator1(target: Function, key: string | symbol, paramIndex: number): void;
|
2015-04-16 01:44:20 +02:00
|
|
|
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void
|
|
|
|
>target : Function
|
|
|
|
>Function : Function
|
|
|
|
>key : string | symbol
|
|
|
|
>paramIndex : number
|
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-16 01:44:20 +02:00
|
|
|
>ParameterDecorator2 : (x: number) => (target: Function, key: string | symbol, paramIndex: number) => void
|
|
|
|
>x : number
|
|
|
|
>target : Function
|
|
|
|
>Function : Function
|
|
|
|
>key : string | symbol
|
|
|
|
>paramIndex : number
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
@ClassDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>ClassDecorator1 : (target: Function) => void
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
@ClassDecorator2(10)
|
|
|
|
>ClassDecorator2(10) : (target: Function) => void
|
2015-04-16 01:44:20 +02:00
|
|
|
>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 {
|
2015-04-16 01:44:20 +02:00
|
|
|
>Greeter : Greeter
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
constructor(
|
|
|
|
@ParameterDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void
|
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-16 01:44:20 +02:00
|
|
|
>ParameterDecorator2 : (x: number) => (target: Function, 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,
|
2015-04-16 01:44:20 +02:00
|
|
|
>greeting : string
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
@ParameterDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void
|
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-16 01:44:20 +02:00
|
|
|
>ParameterDecorator2 : (x: number) => (target: Function, 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[]) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>b : string[]
|
2015-03-18 19:17:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@PropertyDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>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() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>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;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : string
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
@PropertyDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>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;
|
2015-04-16 01:44:20 +02:00
|
|
|
>x1 : number
|
2015-04-13 21:36:11 +02:00
|
|
|
>10 : number
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
private fn(
|
2015-04-16 01:44:20 +02:00
|
|
|
>fn : (x: number) => string
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
@ParameterDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void
|
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-16 01:44:20 +02:00
|
|
|
>ParameterDecorator2 : (x: number) => (target: Function, 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) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>x : number
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
return this.greeting;
|
2015-04-16 01:44:20 +02:00
|
|
|
>this.greeting : string
|
|
|
|
>this : Greeter
|
|
|
|
>greeting : string
|
2015-03-18 19:17:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@PropertyDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
2015-04-16 01:44:20 +02:00
|
|
|
>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() {
|
2015-04-16 01:44:20 +02:00
|
|
|
>greetings : string
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
return this.greeting;
|
2015-04-16 01:44:20 +02:00
|
|
|
>this.greeting : string
|
|
|
|
>this : Greeter
|
|
|
|
>greeting : string
|
2015-03-18 19:17:26 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
set greetings(
|
2015-04-16 01:44:20 +02:00
|
|
|
>greetings : string
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
@ParameterDecorator1
|
2015-04-16 01:44:20 +02:00
|
|
|
>ParameterDecorator1 : (target: Function, key: string | symbol, paramIndex: number) => void
|
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-16 01:44:20 +02:00
|
|
|
>ParameterDecorator2 : (x: number) => (target: Function, 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) {
|
2015-04-16 01:44:20 +02:00
|
|
|
>greetings : string
|
2015-03-18 19:17:26 +01:00
|
|
|
|
|
|
|
this.greeting = greetings;
|
|
|
|
>this.greeting = greetings : string
|
2015-04-16 01:44:20 +02:00
|
|
|
>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
|
|
|
}
|