Merge branch 'master' into fixAsyncReferecedImport

This commit is contained in:
Ron Buckton
2015-11-30 16:45:34 -08:00
18 changed files with 801 additions and 327 deletions

View File

@@ -11,4 +11,22 @@ let x = async function() {
// async function with which promised type is void - return can be omitted
async function f2(): Promise<void> {
}
}
async function f3(x) {
if (x) return 10;
}
async function f4(): Promise<number> {
}
function voidFunc(): void {
}
function calltoVoidFunc(x) {
if (x) return voidFunc();
}
declare function use(s: string): void;
let x1 = () => { use("Test"); }

View File

@@ -0,0 +1,5 @@
// @target: es6
// @filename: a.ts
async function f() {}
// @filename: b.ts
function g() { }

View File

@@ -0,0 +1,60 @@
/// <reference path='fourslash.ts' />
// @BaselineFile: bpSpan_decorators.baseline
// @Filename: bpSpan_decorators.ts
////declare function ClassDecorator1(target: Function): void;
////declare function ClassDecorator2(x: number): (target: Function) => void;
////declare function PropertyDecorator1(target: Object, key: string | symbol, descriptor?: PropertyDescriptor): void;
////declare function PropertyDecorator2(x: number): (target: Object, key: string | symbol, descriptor?: PropertyDescriptor) => void;
////declare function ParameterDecorator1(target: Object, key: string | symbol, paramIndex: number): void;
////declare function ParameterDecorator2(x: number): (target: Object, key: string | symbol, paramIndex: number) => void;
////
////@ClassDecorator1
////@ClassDecorator2(10)
////class Greeter {
//// constructor(
//// @ParameterDecorator1
//// @ParameterDecorator2(20)
//// public greeting: string,
////
//// @ParameterDecorator1
//// @ParameterDecorator2(30)
//// ...b: string[]) {
//// }
////
//// @PropertyDecorator1
//// @PropertyDecorator2(40)
//// greet() {
//// return "<h1>" + this.greeting + "</h1>";
//// }
////
//// @PropertyDecorator1
//// @PropertyDecorator2(50)
//// private x: string;
////
//// @PropertyDecorator1
//// @PropertyDecorator2(60)
//// private static x1: number = 10;
////
//// private fn(
//// @ParameterDecorator1
//// @ParameterDecorator2(70)
//// x: number) {
//// return this.greeting;
//// }
////
//// @PropertyDecorator1
//// @PropertyDecorator2(80)
//// get greetings() {
//// return this.greeting;
//// }
////
//// set greetings(
//// @ParameterDecorator1
//// @ParameterDecorator2(90)
//// greetings: string) {
//// this.greeting = greetings;
//// }
////}
verify.baselineCurrentFileBreakpointLocations();