Newlines in fixtures (#6044)

* write newlines for fixtures

* rerun fixtures
This commit is contained in:
Henry Zhu 2017-08-02 15:35:29 -04:00 committed by GitHub
parent 829c75a866
commit 0f823beeb1
547 changed files with 538 additions and 579 deletions

View File

@ -1,2 +1,2 @@
export function foo() {} export function foo() {}
export function bar() {} export function bar() {}

View File

@ -13,4 +13,4 @@ var Foo = function (_Bar) {
} }
return Foo; return Foo;
}(Bar); }(Bar);

View File

@ -1,4 +1,4 @@
function test() { function test() {
var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "hi"; var x = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "hi";
return x; return x;
} }

View File

@ -29,4 +29,4 @@ class Class {
})(); })();
} }
} }

View File

@ -5,4 +5,4 @@ var _fieldName = fieldName;
value = _values[_fieldName]; value = _values[_fieldName];
rest = babelHelpers.objectWithoutProperties(_values, [_fieldName].map(babelHelpers.toPropertyKey)); rest = babelHelpers.objectWithoutProperties(_values, [_fieldName].map(babelHelpers.toPropertyKey));
_values; _values;
var error = void 0; var error = void 0;

View File

@ -1,2 +1,2 @@
#!/usr/bin/env node #!/usr/bin/env node
foobar(); foobar();

View File

@ -2,4 +2,4 @@ foo("foo");
foo("foo\nlol"); foo("foo\nlol");
foo("foo\n\"lol"); foo("foo\n\"lol");
foo("foo\n\"'lol"); foo("foo\n\"'lol");
foo("😂"); foo("😂");

View File

@ -2,4 +2,4 @@ foo('foo');
foo('foo\nlol'); foo('foo\nlol');
foo('foo\n"lol'); foo('foo\n"lol');
foo('foo\n"\'lol'); foo('foo\n"\'lol');
foo('😂'); foo('😂');

View File

@ -3,4 +3,4 @@ function test() {
* this is comment * this is comment
*/ */
var i = 20; var i = 20;
} }

View File

@ -1,2 +1,2 @@
{ print("hello"); // comment { print("hello"); // comment
} }

View File

@ -1,4 +1,4 @@
{ {
print("hello"); print("hello");
// comment // comment
} }

View File

@ -1,4 +1,4 @@
// Leading to block // Leading to block
{ {
print("hello"); print("hello");
} }

View File

@ -2,4 +2,4 @@
print("hello"); print("hello");
// comment2 // comment2
print("hello2"); print("hello2");

View File

@ -1,2 +1,2 @@
do {} // LINE do {} // LINE
while (true); while (true);

View File

@ -1,4 +1,4 @@
function test() { function test() {
// Leading to EmptyStatement // Leading to EmptyStatement
; // Trailing to EmptyStatement ; // Trailing to EmptyStatement
} }

View File

@ -1,3 +1,3 @@
(function () { (function () {
return; // comment return; // comment
})(); })();

View File

@ -1 +1 @@
; // Trailing ; // Trailing

View File

@ -1 +1 @@
var foo=1/ /* leading */1; var foo=1/ /* leading */1;

View File

@ -7,4 +7,4 @@ finally {}
{ {
try {} catch (e) {} // try {} catch (e) {} //
finally {} finally {}
} }

View File

@ -11,4 +11,4 @@ function test() {
* Leading to VariableDeclarator * Leading to VariableDeclarator
*/ */
j = 20; j = 20;
} }

View File

@ -1 +1 @@
x=1;var{y=1}=obj; x=1;var{y=1}=obj;

View File

@ -1 +1 @@
1*1;1&&1;1+ +1;x+ ++y;a+ +b*2;a+ +b*2*2*2;a- -b;1+-b;1- --b;a- -b*2;1- --t*t; 1*1;1&&1;1+ +1;x+ ++y;a+ +b*2;a+ +b*2*2*2;a- -b;1+-b;1- --b;a- -b*2;1- --t*t;

View File

@ -1 +1 @@
({[fieldName]:value,...rest}=values);let error; ({[fieldName]:value,...rest}=values);let error;

View File

@ -1,2 +1,2 @@
// foo // foo
bar(); bar();

View File

@ -1 +1 @@
while(true)x(); while(true)x();

View File

@ -1,3 +1,3 @@
x | y ^ z; x | y ^ z;
x | y ^ z; x | y ^ z;
(x | y) ^ z; (x | y) ^ z;

View File

@ -1,2 +1,2 @@
1.1.valueOf(); 1.1.valueOf();
1e+300.valueOf(); 1e+300.valueOf();

View File

@ -2,4 +2,4 @@
2..toString(); 2..toString();
0x1F7.toString(); 0x1F7.toString();
0b111110111.toString(); 0b111110111.toString();
0o767.toString(); 0o767.toString();

View File

@ -9,4 +9,4 @@ new a().test;
new (a().test)(); new (a().test)();
new (a().b.c)(); new (a().b.c)();
new a().b.c(); new a().b.c();
new (a.b().c.d)(); new (a.b().c.d)();

View File

@ -1,3 +1,3 @@
dejavu.Class.declare({ dejavu.Class.declare({
method2: function () {} method2: function () {}
}); });

View File

@ -8,4 +8,4 @@ function foo() {
return ( return (
1 && 2 || 1 && 2 ||
3); 3);
} }

View File

@ -2,4 +2,4 @@ delete delete i;
+ +i; + +i;
!!i; !!i;
+ ++i; + ++i;
- --i; - --i;

View File

@ -1,4 +1,4 @@
var fact5 = function fact(n) { var fact5 = function fact(n) {
if (n <= 1) return 1; if (n <= 1) return 1;
return n * fact(n - 1); return n * fact(n - 1);
}(5); }(5);

View File

@ -1 +1 @@
"\u00A9"; "\u00A9";

View File

@ -3,4 +3,4 @@ var a: ?number[];
var a: (?number)[]; var a: (?number)[];
var a: () => number[]; var a: () => number[];
var a: (() => number)[]; var a: (() => number)[];
var a: typeof A[]; var a: typeof A[];

View File

@ -1,2 +1,2 @@
var foo: true; var foo: true;
var bar: false; var bar: false;

View File

@ -37,4 +37,4 @@ declare interface I<T> {
} }
declare module.exports: { declare module.exports: {
foo: string foo: string
} }

View File

@ -1 +1 @@
var foo: null; var foo: null;

View File

@ -2,4 +2,4 @@ var a: 123;
var a: 123.0; var a: 123.0;
var a: 0x7B; var a: 0x7B;
var a: 0b1111011; var a: 0b1111011;
var a: 0o173; var a: 0o173;

View File

@ -14,4 +14,4 @@ var f = (x: mixed): %checks => typeof x === "string";
const foo = (x: mixed): boolean %checks => typeof x === "string"; const foo = (x: mixed): boolean %checks => typeof x === "string";
x: %checks => x !== null; x: %checks => x !== null;

View File

@ -1,4 +1,4 @@
var a: A.B; var a: A.B;
var a: A.B.C; var a: A.B.C;
var a: A.B<T>; var a: A.B<T>;
var a: typeof A.B<T>; var a: typeof A.B<T>;

View File

@ -1,4 +1,4 @@
var a: [] = []; var a: [] = [];
var a: [Foo<T>] = [foo]; var a: [Foo<T>] = [foo];
var a: [number] = [123]; var a: [number] = [123];
var a: [number, string] = [123, "duck"]; var a: [number, string] = [123, "duck"];

View File

@ -36,4 +36,4 @@ var a: {
var a: { var a: {
[a: number]: string, [a: number]: string,
[b: number]: string, [b: number]: string,
}; };

View File

@ -1 +1 @@
export default class {} export default class {}

View File

@ -1 +1 @@
export default function () {} export default function () {}

View File

@ -1 +1 @@
export default (function () {})(); export default (function () {})();

View File

@ -1 +1 @@
export default (class {})(); export default (class {})();

View File

@ -1 +1 @@
export default class Foo {} export default class Foo {}

View File

@ -1 +1 @@
export default function foo() {} export default function foo() {}

View File

@ -1 +1 @@
export default {}; export default {};

View File

@ -7,4 +7,4 @@ export default i = 20;
export function test() {} export function test() {}
export class test2 {} export class test2 {}
export var j = 20; export var j = 20;
export let k = 42; export let k = 42;

View File

@ -2,4 +2,4 @@ function test() {
for (var i of array) {} for (var i of array) {}
for (let i of array) {} for (let i of array) {}
} }

View File

@ -1,3 +1,3 @@
import foo from "foo"; import foo from "foo";
import * as foo from "foo"; import * as foo from "foo";
import ok, { foo as bar, test as testing, logging } from "foo"; import ok, { foo as bar, test as testing, logging } from "foo";

View File

@ -1,4 +1,4 @@
import "foo"; import "foo";
import { foo } from "foo"; import { foo } from "foo";
import { foo as bar } from "foo"; import { foo as bar } from "foo";
import { foo as bar, test as testing, logging } from "foo"; import { foo as bar, test as testing, logging } from "foo";

View File

@ -5,4 +5,4 @@ function* foo() {
yield a, yield b; yield a, yield b;
yield a = b; yield a = b;
return (yield 1) || (yield 2); return (yield 1) || (yield 2);
} }

View File

@ -1 +1 @@
var foo=(arg1,arg2)=>{arg1;arg2};var foo2=(arg1,arg2)=>{arg1};var foo3=arg1=>arg1; var foo=(arg1,arg2)=>{arg1;arg2};var foo2=(arg1,arg2)=>{arg1};var foo3=arg1=>arg1;

View File

@ -1 +1 @@
if(true){foo;bar2}else{foo;bar2}function fn(){foo;bar2} if(true){foo;bar2}else{foo;bar2}function fn(){foo;bar2}

View File

@ -1 +1 @@
function x(){return-1;return--i;return!2;return void 0}throw-1; function x(){return-1;return--i;return!2;return void 0}throw-1;

View File

@ -1 +1 @@
5;5;50;5e4;"foobar";" ";"\n\r";"\uD83D\uDE02";`😂`;/foobar/g;null;true;false;5;2;56;31; 5;5;50;5e4;"foobar";" ";"\n\r";"\uD83D\uDE02";`😂`;/foobar/g;null;true;false;5;2;56;31;

View File

@ -1 +1 @@
import*as foo from"foo";import{foo as bar,foo2 as bar2}from"foo";import{foo2}from"foo";export*from"foo";export{foo as bar}from"foo";export{foo}from"foo"; import*as foo from"foo";import{foo as bar,foo2 as bar2}from"foo";import{foo2}from"foo";export*from"foo";export{foo as bar}from"foo";export{foo}from"foo";

View File

@ -1 +1 @@
new X;new Y()();new F().z;new new x();new new x()(a);new new x(a);new new x(a)(a); new X;new Y()();new F().z;new new x();new new x()(a);new new x(a);new new x(a)(a);

View File

@ -1 +1 @@
function foo(){var x=1;y();if(bar){baz()}return}function bar(){for(;;);} function foo(){var x=1;y();if(bar){baz()}return}function bar(){for(;;);}

View File

@ -1 +1 @@
foo || (bar => bar()); foo || (bar => bar());

View File

@ -1,3 +1,3 @@
1 + (a = 2); 1 + (a = 2);
1 + (a += 2); 1 + (a += 2);
a = a || (a = {}); a = a || (a = {});

View File

@ -14,4 +14,4 @@ label2: for (const a of [1, 2, 3]) {
break; //foo break; //foo
label2; label2;
} }

View File

@ -1,3 +1,3 @@
(do { (do {
foo; foo;
}); });

View File

@ -6,4 +6,4 @@ a.b ** c;
a ** -b; a ** -b;
-(a ** b); -(a ** b);
(a * b) ** c; (a * b) ** c;
a ** (b * c); a ** (b * c);

View File

@ -1,2 +1,2 @@
({}) === foo; ({}) === foo;
({}) && foo; ({}) && foo;

View File

@ -1,3 +1,3 @@
void (() => {}); void (() => {});
typeof (() => {}); typeof (() => {});
!(() => {}); !(() => {});

View File

@ -1 +1 @@
__d('x', (function () {})); __d('x', (function () {}));

View File

@ -1 +1 @@
var x = (function () {}); var x = (function () {});

View File

@ -1 +1 @@
!function () {}(); !function () {}();

View File

@ -1 +1 @@
var x = (function () {}); var x = (function () {});

View File

@ -1 +1 @@
callback(function () {}); callback(function () {});

View File

@ -2,4 +2,4 @@
[[], [b, c], []]; [[], [b, c], []];
[a,, b]; [a,, b];
[a,,,, b]; [a,,,, b];
[a, b,, c]; [a, b,, c];

View File

@ -1,3 +1,3 @@
foo === bar; foo === bar;
foo + bar; foo + bar;
foo = bar; foo = bar;

View File

@ -1,3 +1,3 @@
async function foo() { async function foo() {
await bar(); await bar();
} }

View File

@ -4,4 +4,4 @@ for (var i in foo) {
foo: for (var i in foo) { foo: for (var i in foo) {
break foo; break foo;
} }

View File

@ -2,4 +2,4 @@ foo();
foo("foo"); foo("foo");
foo("foo", "bar"); foo("foo", "bar");
foo(bar()); foo(bar());
foo(bar("test")); foo(bar("test"));

View File

@ -1,2 +1,2 @@
var foo = class Foo {}; var foo = class Foo {};
var foo = class Foo extends Bar {}; var foo = class Foo extends Bar {};

View File

@ -1 +1 @@
foo ? foo : bar; foo ? foo : bar;

View File

@ -4,4 +4,4 @@ for (var i in foo) {
foo: for (var i in foo) { foo: for (var i in foo) {
continue foo; continue foo;
} }

View File

@ -1 +1 @@
debugger; debugger;

View File

@ -2,4 +2,4 @@ do {
test(); test();
} while (true); } while (true);
do {} while (true); do {} while (true);

View File

@ -1 +1 @@
export default 42; export default 42;

View File

@ -1 +1 @@
export default {}; export default {};

View File

@ -1 +1 @@
export default []; export default [];

View File

@ -1 +1 @@
export default foo; export default foo;

View File

@ -1 +1 @@
export default function () {} export default function () {}

View File

@ -1 +1 @@
export default class {} export default class {}

View File

@ -1 +1 @@
export default function foo() {} export default function foo() {}

View File

@ -1 +1 @@
export default class Foo {} export default class Foo {}

View File

@ -5,4 +5,4 @@ export let foo4 = 2;
export let foo5; export let foo5;
export const foo6 = 3; export const foo6 = 3;
export function foo7() {} export function foo7() {}
export class foo8 {} export class foo8 {}

View File

@ -1 +1 @@
export * from "foo"; export * from "foo";

View File

@ -1 +1 @@
export { foo as default, bar } from "foo"; export { foo as default, bar } from "foo";

View File

@ -1 +1 @@
export { foo }; export { foo };

View File

@ -1 +1 @@
export { foo, bar }; export { foo, bar };

Some files were not shown because too many files have changed in this diff Show More