Fix some unneeded semis in test fixtures (#5892)

This commit is contained in:
Brian Ng
2017-06-27 22:15:10 -05:00
committed by GitHub
parent b3372a572d
commit 58ec149c52
12 changed files with 35 additions and 73 deletions

View File

@@ -2,7 +2,7 @@ function f() {
let g = async () => {
this;
};
};
}
class Class {
async m() {

View File

@@ -12,8 +12,6 @@ function f() {
}();
}
;
class Class {
m() {
var _this2 = this;

View File

@@ -2,4 +2,4 @@ var a: { (): number };
var a: { (): number; };
var a: { (): number; y: string; (x: string): string };
var a: { <T>(x: T): number; };
interface A { (): number; };
interface A { (): number; }

View File

@@ -14,5 +14,4 @@ var a: {
};
interface A {
(): number
}
;
}

View File

@@ -5,13 +5,13 @@ type T = { +p: T };
type T = { -p: T };
type T = { +[k:K]: V };
type T = { -[k:K]: V };
interface I { +p: T };
interface I { -p: T };
interface I { +[k:K]: V };
interface I { -[k:K]: V };
declare class I { +p: T };
declare class I { -p: T };
declare class I { +[k:K]: V };
declare class I { -[k:K]: V };
class C2 { +p: T = e };
class C3 { -p: T = e };
interface I { +p: T }
interface I { -p: T }
interface I { +[k:K]: V }
interface I { -[k:K]: V }
declare class I { +p: T }
declare class I { -p: T }
declare class I { +[k:K]: V }
declare class I { -[k:K]: V }
class C2 { +p: T = e }
class C3 { -p: T = e }

View File

@@ -18,44 +18,32 @@ type T = {
interface I {
+p: T
}
;
interface I {
-p: T
}
;
interface I {
+[k: K]: V
}
;
interface I {
-[k: K]: V
}
;
declare class I {
+p: T
}
;
declare class I {
-p: T
}
;
declare class I {
+[k: K]: V
}
;
declare class I {
-[k: K]: V
}
;
class C2 {
+p: T = e;
}
;
class C3 {
-p: T = e;
}
;
}

View File

@@ -1,8 +1,8 @@
interface A {};
interface A extends B {};
interface A<T> extends B<T>, C<T> {};
interface A { foo: () => number; };
interface Dictionary { [index: string]: string; length: number; };
interface A {}
interface A extends B {}
interface A<T> extends B<T>, C<T> {}
interface A { foo: () => number; }
interface Dictionary { [index: string]: string; length: number; }
class Foo implements Bar {}
class Foo extends Bar implements Bat, Man<number> {}
class Foo extends class Bar implements Bat {} {}

View File

@@ -1,18 +1,13 @@
interface A {}
;
interface A extends B {}
;
interface A<T> extends B<T>, C<T> {}
;
interface A {
foo: () => number
}
;
interface Dictionary {
length: number,
[index: string]: string,
}
;
class Foo implements Bar {}

View File

@@ -105,8 +105,8 @@ import { type Foo as Bar } from "bar";
import { typeof Foo as Bar } from "bar";
export type { foo };
export type { bar } from "bar";
export interface baz { p: number };
export interface qux<T> { p: T };
export interface baz { p: number }
export interface qux<T> { p: T }
var a: ?Array<?string>;
var a: {| numVal: number |};
var a: {| numVal: number; |};

View File

@@ -231,11 +231,9 @@ export type { bar } from "bar";
export interface baz {
p: number
}
;
export interface qux<T> {
p: T
}
;
var a: ?Array<?string>;
var a: {|
numVal: number
@@ -288,4 +286,4 @@ var a: {|
function foo(numVal: number = 2) {}
function foo(numVal?: number = 2) {}
function foo(numVal?: number = 2) {}

View File

@@ -3,19 +3,19 @@ type A<T = *> = T;
type A<T: ?string = string> = T;
type A<S, T: ?string = string> = T;
type A<S = number, T: ?string = string> = T;
class A<T = string> {};
class A<T: ?string = string> {};
class A<S, T: ?string = string> {};
class A<S = number, T: ?string = string> {};
class A<T = string> {}
class A<T: ?string = string> {}
class A<S, T: ?string = string> {}
class A<S = number, T: ?string = string> {}
(class A<T = string> {});
(class A<T: ?string = string> {});
(class A<S, T: ?string = string> {});
(class A<S = number, T: ?string = string> {});
declare class A<T = string> {};
declare class A<T: ?string = string> {};
declare class A<S, T: ?string = string> {};
declare class A<S = number, T: ?string = string> {};
interface A<T = string> {};
interface A<T: ?string = string> {};
interface A<S, T: ?string = string> {};
interface A<S = number, T: ?string = string> {};
declare class A<T = string> {}
declare class A<T: ?string = string> {}
declare class A<S, T: ?string = string> {}
declare class A<S = number, T: ?string = string> {}
interface A<T = string> {}
interface A<T: ?string = string> {}
interface A<S, T: ?string = string> {}
interface A<S = number, T: ?string = string> {}

View File

@@ -6,20 +6,12 @@ type A<S = number, T: ?string = string> = T;
class A<T = string> {}
;
class A<T: ?string = string> {}
;
class A<S, T: ?string = string> {}
;
class A<S = number, T: ?string = string> {}
;
(class A<T = string> {});
(class A<T: ?string = string> {});
@@ -29,18 +21,10 @@ class A<S = number, T: ?string = string> {}
(class A<S = number, T: ?string = string> {});
declare class A<T = string> {}
;
declare class A<T: ?string = string> {}
;
declare class A<S, T: ?string = string> {}
;
declare class A<S = number, T: ?string = string> {}
;
interface A<T = string> {}
;
interface A<T: ?string = string> {}
;
interface A<S, T: ?string = string> {}
;
interface A<S = number, T: ?string = string> {}
;
interface A<S = number, T: ?string = string> {}