diff --git a/tests/baselines/reference/parserNotRegex2.js b/tests/baselines/reference/parserNotRegex2.js new file mode 100644 index 0000000000000..189e7a1015b66 --- /dev/null +++ b/tests/baselines/reference/parserNotRegex2.js @@ -0,0 +1,15 @@ +//// [parserNotRegex2.ts] +declare const A: any; +declare const B: any; +declare const C: any; +const x = (A / 2); +B( + C(), + () => { }, + () => { } +); + + +//// [parserNotRegex2.js] +var x = (A / 2); +B(C(), function () { }, function () { }); diff --git a/tests/baselines/reference/parserNotRegex2.symbols b/tests/baselines/reference/parserNotRegex2.symbols new file mode 100644 index 0000000000000..85a6dbeb340a3 --- /dev/null +++ b/tests/baselines/reference/parserNotRegex2.symbols @@ -0,0 +1,24 @@ +=== tests/cases/conformance/parser/ecmascript5/parserNotRegex2.ts === +declare const A: any; +>A : Symbol(A, Decl(parserNotRegex2.ts, 0, 13)) + +declare const B: any; +>B : Symbol(B, Decl(parserNotRegex2.ts, 1, 13)) + +declare const C: any; +>C : Symbol(C, Decl(parserNotRegex2.ts, 2, 13)) + +const x = (A / 2); +>x : Symbol(x, Decl(parserNotRegex2.ts, 3, 5)) +>A : Symbol(A, Decl(parserNotRegex2.ts, 0, 13)) + +B( +>B : Symbol(B, Decl(parserNotRegex2.ts, 1, 13)) + + C(), +>C : Symbol(C, Decl(parserNotRegex2.ts, 2, 13)) + + () => { }, + () => { } +); + diff --git a/tests/baselines/reference/parserNotRegex2.types b/tests/baselines/reference/parserNotRegex2.types new file mode 100644 index 0000000000000..b5f04db3e3147 --- /dev/null +++ b/tests/baselines/reference/parserNotRegex2.types @@ -0,0 +1,33 @@ +=== tests/cases/conformance/parser/ecmascript5/parserNotRegex2.ts === +declare const A: any; +>A : any + +declare const B: any; +>B : any + +declare const C: any; +>C : any + +const x = (A / 2); +>x : number +>(A / 2) : number +>A / 2 : number +>A : any +>2 : 2 + +B( +>B( C(), () => { }, () => { }) : any +>B : any + + C(), +>C() : any +>C : any + + () => { }, +>() => { } : () => void + + () => { } +>() => { } : () => void + +); + diff --git a/tests/cases/conformance/parser/ecmascript5/parserNotRegex2.ts b/tests/cases/conformance/parser/ecmascript5/parserNotRegex2.ts new file mode 100644 index 0000000000000..3cd019f1a2cbc --- /dev/null +++ b/tests/cases/conformance/parser/ecmascript5/parserNotRegex2.ts @@ -0,0 +1,9 @@ +declare const A: any; +declare const B: any; +declare const C: any; +const x = (A / 2); +B( + C(), + () => { }, + () => { } +);