Updated baselines

This commit is contained in:
Ron Buckton
2015-03-17 14:06:06 -07:00
parent 6c32a8bdb0
commit f909c6c9f7
135 changed files with 1978 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
// @target:es5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec get accessor() { return 1; }
}

View File

@@ -0,0 +1,6 @@
// @target:es5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec public get accessor() { return 1; }
}

View File

@@ -0,0 +1,6 @@
// @target:es5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
public @dec get accessor() { return 1; }
}

View File

@@ -0,0 +1,6 @@
// @target:es5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec set accessor(value: number) { }
}

View File

@@ -0,0 +1,6 @@
// @target:es5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec public set accessor(value: number) { }
}

View File

@@ -0,0 +1,6 @@
// @target:es5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
public @dec set accessor(value: number) { }
}

View File

@@ -0,0 +1,5 @@
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec constructor() {}
}

View File

@@ -0,0 +1,5 @@
declare function dec(target: Function, parameterIndex: number): void;
class C {
constructor(@dec p: number) {}
}

View File

@@ -0,0 +1,5 @@
declare function dec(target: Function, parameterIndex: number): void;
class C {
constructor(public @dec p: number) {}
}

View File

@@ -0,0 +1,5 @@
declare function dec<T>(target: T): T;
@dec
class C {
}

View File

@@ -0,0 +1,6 @@
// @module: commonjs
declare function dec<T>(target: T): T;
@dec
export class C {
}

View File

@@ -0,0 +1,7 @@
// @module: commonjs
declare function dec<T>(target: T): T;
export
@dec
class C {
}

View File

@@ -0,0 +1,5 @@
declare function dec(): <T>(target: T) => T;
@dec()
class C {
}

View File

@@ -0,0 +1,5 @@
declare function dec(): <T>(target: T) => T;
@dec()
class C {
}

View File

@@ -0,0 +1,5 @@
declare function dec(): (target: Function, paramIndex: number) => void;
@dec()
class C {
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec method() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec(target: Function, paramIndex: number): void;
class C {
@dec method() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec public method() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
public @dec method() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES6
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec ["method"]() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES6
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
class C {
@dec() ["method"]() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES6
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
class C {
@dec ["method"]() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES6
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec public ["method"]() {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: T): T;
class C {
@dec method() {}
}

View File

@@ -0,0 +1,5 @@
declare function dec(target: Function, parameterIndex: number): void;
class C {
method(@dec p: number) {}
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec prop;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
class C {
@dec() prop;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec(): <T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T>;
class C {
@dec prop;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<number>;
class C {
@dec prop;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<number>;
class C {
@dec prop: string;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
@dec public prop;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
class C {
public @dec prop;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec(target: Function): void;
class C {
@dec prop;
}

View File

@@ -0,0 +1,6 @@
// @target: ES5
declare function dec(target: Function, paramIndex: number): void;
class C {
@dec prop;
}

View File

@@ -0,0 +1,4 @@
declare function dec<T>(target: T): T;
var F = @dec () => {
}

View File

@@ -0,0 +1,5 @@
declare function dec<T>(target: T): T;
@dec
enum E {
}

View File

@@ -0,0 +1,5 @@
declare function dec<T>(target: T): T;
enum E {
@dec A
}

View File

@@ -0,0 +1,5 @@
declare function dec<T>(target: T): T;
@dec
function F() {
}

View File

@@ -0,0 +1,4 @@
declare function dec<T>(target: T): T;
var F = @dec function () {
}

View File

@@ -0,0 +1,10 @@
declare function dec<T>(target: T): T;
module M1 {
export var X: number;
}
module M2 {
@dec
import X = M1.X;
}

View File

@@ -0,0 +1,9 @@
// @module: commonjs
// @Filename: decoratorOnImportEquals2_0.ts
export var X;
// @Filename: decoratorOnImportEquals2_1.ts
@dec
import lib = require('./decoratorOnImportEquals2_0');
declare function dec<T>(target: T): T;

View File

@@ -0,0 +1,5 @@
declare function dec<T>(target: T): T;
@dec
interface I {
}

View File

@@ -0,0 +1,6 @@
declare function dec<T>(target: T): T;
@dec
module M {
}

View File

@@ -0,0 +1,4 @@
declare function dec<T>(target: T): T;
@dec
type T = number;

View File

@@ -0,0 +1,4 @@
declare function dec<T>(target: T): T;
@dec
var x: number;