Newlines in fixtures (#6044)
* write newlines for fixtures * rerun fixtures
This commit is contained in:
parent
829c75a866
commit
0f823beeb1
@ -1,2 +1,2 @@
|
|||||||
export function foo() {}
|
export function foo() {}
|
||||||
export function bar() {}
|
export function bar() {}
|
||||||
|
|||||||
@ -13,4 +13,4 @@ var Foo = function (_Bar) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return Foo;
|
return Foo;
|
||||||
}(Bar);
|
}(Bar);
|
||||||
|
|||||||
@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -29,4 +29,4 @@ class Class {
|
|||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
#!/usr/bin/env node
|
#!/usr/bin/env node
|
||||||
foobar();
|
foobar();
|
||||||
|
|||||||
@ -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("😂");
|
||||||
@ -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('😂');
|
||||||
@ -3,4 +3,4 @@ function test() {
|
|||||||
* this is comment
|
* this is comment
|
||||||
*/
|
*/
|
||||||
var i = 20;
|
var i = 20;
|
||||||
}
|
}
|
||||||
@ -1,2 +1,2 @@
|
|||||||
{ print("hello"); // comment
|
{ print("hello"); // comment
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
print("hello");
|
print("hello");
|
||||||
// comment
|
// comment
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
// Leading to block
|
// Leading to block
|
||||||
{
|
{
|
||||||
print("hello");
|
print("hello");
|
||||||
}
|
}
|
||||||
@ -2,4 +2,4 @@
|
|||||||
print("hello");
|
print("hello");
|
||||||
|
|
||||||
// comment2
|
// comment2
|
||||||
print("hello2");
|
print("hello2");
|
||||||
@ -1,2 +1,2 @@
|
|||||||
do {} // LINE
|
do {} // LINE
|
||||||
while (true);
|
while (true);
|
||||||
@ -1,4 +1,4 @@
|
|||||||
function test() {
|
function test() {
|
||||||
// Leading to EmptyStatement
|
// Leading to EmptyStatement
|
||||||
; // Trailing to EmptyStatement
|
; // Trailing to EmptyStatement
|
||||||
}
|
}
|
||||||
@ -1 +0,0 @@
|
|||||||
|
|
||||||
@ -1,3 +1,3 @@
|
|||||||
(function () {
|
(function () {
|
||||||
return; // comment
|
return; // comment
|
||||||
})();
|
})();
|
||||||
@ -1 +1 @@
|
|||||||
; // Trailing
|
; // Trailing
|
||||||
@ -1 +1 @@
|
|||||||
var foo=1/ /* leading */1;
|
var foo=1/ /* leading */1;
|
||||||
@ -7,4 +7,4 @@ finally {}
|
|||||||
{
|
{
|
||||||
try {} catch (e) {} //
|
try {} catch (e) {} //
|
||||||
finally {}
|
finally {}
|
||||||
}
|
}
|
||||||
@ -11,4 +11,4 @@ function test() {
|
|||||||
* Leading to VariableDeclarator
|
* Leading to VariableDeclarator
|
||||||
*/
|
*/
|
||||||
j = 20;
|
j = 20;
|
||||||
}
|
}
|
||||||
@ -1 +1 @@
|
|||||||
x=1;var{y=1}=obj;
|
x=1;var{y=1}=obj;
|
||||||
@ -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;
|
||||||
@ -1 +1 @@
|
|||||||
({[fieldName]:value,...rest}=values);let error;
|
({[fieldName]:value,...rest}=values);let error;
|
||||||
@ -1,2 +1,2 @@
|
|||||||
// foo
|
// foo
|
||||||
bar();
|
bar();
|
||||||
@ -1 +1 @@
|
|||||||
while(true)x();
|
while(true)x();
|
||||||
@ -1,3 +1,3 @@
|
|||||||
x | y ^ z;
|
x | y ^ z;
|
||||||
x | y ^ z;
|
x | y ^ z;
|
||||||
(x | y) ^ z;
|
(x | y) ^ z;
|
||||||
@ -1,2 +1,2 @@
|
|||||||
1.1.valueOf();
|
1.1.valueOf();
|
||||||
1e+300.valueOf();
|
1e+300.valueOf();
|
||||||
@ -2,4 +2,4 @@
|
|||||||
2..toString();
|
2..toString();
|
||||||
0x1F7.toString();
|
0x1F7.toString();
|
||||||
0b111110111.toString();
|
0b111110111.toString();
|
||||||
0o767.toString();
|
0o767.toString();
|
||||||
@ -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)();
|
||||||
@ -1,3 +1,3 @@
|
|||||||
dejavu.Class.declare({
|
dejavu.Class.declare({
|
||||||
method2: function () {}
|
method2: function () {}
|
||||||
});
|
});
|
||||||
@ -3,4 +3,4 @@ return(
|
|||||||
|
|
||||||
l);
|
l);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -8,4 +8,4 @@ function foo() {
|
|||||||
return (
|
return (
|
||||||
1 && 2 ||
|
1 && 2 ||
|
||||||
3);
|
3);
|
||||||
}
|
}
|
||||||
@ -2,4 +2,4 @@ delete delete i;
|
|||||||
+ +i;
|
+ +i;
|
||||||
!!i;
|
!!i;
|
||||||
+ ++i;
|
+ ++i;
|
||||||
- --i;
|
- --i;
|
||||||
@ -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);
|
||||||
@ -1 +1 @@
|
|||||||
"\u00A9";
|
"\u00A9";
|
||||||
@ -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[];
|
||||||
@ -1,2 +1,2 @@
|
|||||||
var foo: true;
|
var foo: true;
|
||||||
var bar: false;
|
var bar: false;
|
||||||
@ -37,4 +37,4 @@ declare interface I<T> {
|
|||||||
}
|
}
|
||||||
declare module.exports: {
|
declare module.exports: {
|
||||||
foo: string
|
foo: string
|
||||||
}
|
}
|
||||||
@ -1 +1 @@
|
|||||||
var foo: null;
|
var foo: null;
|
||||||
@ -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;
|
||||||
@ -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;
|
||||||
@ -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>;
|
||||||
@ -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"];
|
||||||
@ -36,4 +36,4 @@ var a: {
|
|||||||
var a: {
|
var a: {
|
||||||
[a: number]: string,
|
[a: number]: string,
|
||||||
[b: number]: string,
|
[b: number]: string,
|
||||||
};
|
};
|
||||||
@ -1 +1 @@
|
|||||||
export default class {}
|
export default class {}
|
||||||
@ -1 +1 @@
|
|||||||
export default function () {}
|
export default function () {}
|
||||||
@ -1 +1 @@
|
|||||||
export default (function () {})();
|
export default (function () {})();
|
||||||
@ -1 +1 @@
|
|||||||
export default (class {})();
|
export default (class {})();
|
||||||
@ -1 +1 @@
|
|||||||
export default class Foo {}
|
export default class Foo {}
|
||||||
@ -1 +1 @@
|
|||||||
export default function foo() {}
|
export default function foo() {}
|
||||||
@ -1 +1 @@
|
|||||||
export default {};
|
export default {};
|
||||||
@ -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;
|
||||||
@ -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) {}
|
||||||
}
|
}
|
||||||
@ -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";
|
||||||
@ -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";
|
||||||
@ -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);
|
||||||
}
|
}
|
||||||
@ -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;
|
||||||
@ -1 +1 @@
|
|||||||
if(true){foo;bar2}else{foo;bar2}function fn(){foo;bar2}
|
if(true){foo;bar2}else{foo;bar2}function fn(){foo;bar2}
|
||||||
@ -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;
|
||||||
@ -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;
|
||||||
@ -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";
|
||||||
@ -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);
|
||||||
@ -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(;;);}
|
||||||
@ -1 +1 @@
|
|||||||
foo || (bar => bar());
|
foo || (bar => bar());
|
||||||
@ -1,3 +1,3 @@
|
|||||||
1 + (a = 2);
|
1 + (a = 2);
|
||||||
1 + (a += 2);
|
1 + (a += 2);
|
||||||
a = a || (a = {});
|
a = a || (a = {});
|
||||||
@ -14,4 +14,4 @@ label2: for (const a of [1, 2, 3]) {
|
|||||||
break; //foo
|
break; //foo
|
||||||
|
|
||||||
label2;
|
label2;
|
||||||
}
|
}
|
||||||
@ -1,3 +1,3 @@
|
|||||||
(do {
|
(do {
|
||||||
foo;
|
foo;
|
||||||
});
|
});
|
||||||
@ -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);
|
||||||
@ -1,2 +1,2 @@
|
|||||||
({}) === foo;
|
({}) === foo;
|
||||||
({}) && foo;
|
({}) && foo;
|
||||||
@ -1,3 +1,3 @@
|
|||||||
void (() => {});
|
void (() => {});
|
||||||
typeof (() => {});
|
typeof (() => {});
|
||||||
!(() => {});
|
!(() => {});
|
||||||
@ -1 +1 @@
|
|||||||
__d('x', (function () {}));
|
__d('x', (function () {}));
|
||||||
@ -1 +1 @@
|
|||||||
var x = (function () {});
|
var x = (function () {});
|
||||||
@ -1 +1 @@
|
|||||||
!function () {}();
|
!function () {}();
|
||||||
@ -1 +1 @@
|
|||||||
var x = (function () {});
|
var x = (function () {});
|
||||||
@ -1 +1 @@
|
|||||||
callback(function () {});
|
callback(function () {});
|
||||||
@ -2,4 +2,4 @@
|
|||||||
[[], [b, c], []];
|
[[], [b, c], []];
|
||||||
[a,, b];
|
[a,, b];
|
||||||
[a,,,, b];
|
[a,,,, b];
|
||||||
[a, b,, c];
|
[a, b,, c];
|
||||||
@ -1,3 +1,3 @@
|
|||||||
foo === bar;
|
foo === bar;
|
||||||
foo + bar;
|
foo + bar;
|
||||||
foo = bar;
|
foo = bar;
|
||||||
@ -1,3 +1,3 @@
|
|||||||
async function foo() {
|
async function foo() {
|
||||||
await bar();
|
await bar();
|
||||||
}
|
}
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
@ -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"));
|
||||||
@ -1,2 +1,2 @@
|
|||||||
var foo = class Foo {};
|
var foo = class Foo {};
|
||||||
var foo = class Foo extends Bar {};
|
var foo = class Foo extends Bar {};
|
||||||
@ -1 +1 @@
|
|||||||
foo ? foo : bar;
|
foo ? foo : bar;
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
@ -1 +1 @@
|
|||||||
debugger;
|
debugger;
|
||||||
@ -2,4 +2,4 @@ do {
|
|||||||
test();
|
test();
|
||||||
} while (true);
|
} while (true);
|
||||||
|
|
||||||
do {} while (true);
|
do {} while (true);
|
||||||
@ -1 +1 @@
|
|||||||
;
|
;
|
||||||
@ -1 +1 @@
|
|||||||
export default 42;
|
export default 42;
|
||||||
@ -1 +1 @@
|
|||||||
export default {};
|
export default {};
|
||||||
@ -1 +1 @@
|
|||||||
export default [];
|
export default [];
|
||||||
@ -1 +1 @@
|
|||||||
export default foo;
|
export default foo;
|
||||||
@ -1 +1 @@
|
|||||||
export default function () {}
|
export default function () {}
|
||||||
@ -1 +1 @@
|
|||||||
export default class {}
|
export default class {}
|
||||||
@ -1 +1 @@
|
|||||||
export default function foo() {}
|
export default function foo() {}
|
||||||
@ -1 +1 @@
|
|||||||
export default class Foo {}
|
export default class Foo {}
|
||||||
@ -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 {}
|
||||||
@ -1 +1 @@
|
|||||||
export * from "foo";
|
export * from "foo";
|
||||||
@ -1 +1 @@
|
|||||||
export { foo as default, bar } from "foo";
|
export { foo as default, bar } from "foo";
|
||||||
@ -1 +1 @@
|
|||||||
export { foo };
|
export { foo };
|
||||||
@ -1 +1 @@
|
|||||||
export { foo, bar };
|
export { foo, bar };
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user