Skip to content

Commit 534105c

Browse files
Accepted new baselines.
1 parent 047d3ae commit 534105c

16 files changed

+64
-16
lines changed

tests/baselines/reference/asiPreventsParsingAsInterface01.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ I // This should be the identifier 'I'
88

99
//// [asiPreventsParsingAsInterface01.js]
1010
var interface, I;
11+
interface; // This should be the identifier 'interface'
12+
I; // This should be the identifier 'I'
13+
{ } // This should be a block body

tests/baselines/reference/asiPreventsParsingAsInterface01.symbols

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22

33
var interface: number, I: string;
44
>interface : Symbol(interface, Decl(asiPreventsParsingAsInterface01.ts, 1, 3))
5-
>I : Symbol(I, Decl(asiPreventsParsingAsInterface01.ts, 1, 22), Decl(asiPreventsParsingAsInterface01.ts, 1, 33))
5+
>I : Symbol(I, Decl(asiPreventsParsingAsInterface01.ts, 1, 22))
66

77
interface // This should be the identifier 'interface'
8+
>interface : Symbol(interface, Decl(asiPreventsParsingAsInterface01.ts, 1, 3))
9+
810
I // This should be the identifier 'I'
9-
>I : Symbol(I, Decl(asiPreventsParsingAsInterface01.ts, 1, 22), Decl(asiPreventsParsingAsInterface01.ts, 1, 33))
11+
>I : Symbol(I, Decl(asiPreventsParsingAsInterface01.ts, 1, 22))
1012

1113
{} // This should be a block body

tests/baselines/reference/asiPreventsParsingAsInterface01.types

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ var interface: number, I: string;
55
>I : string
66

77
interface // This should be the identifier 'interface'
8+
>interface : number
9+
810
I // This should be the identifier 'I'
9-
>I : I
11+
>I : string
1012

1113
{} // This should be a block body

tests/baselines/reference/asiPreventsParsingAsInterface02.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,7 @@ function f(interface: number, I: string) {
88

99
//// [asiPreventsParsingAsInterface02.js]
1010
function f(interface, I) {
11+
interface; // This should be the identifier 'interface'
12+
I; // This should be the identifier 'I'
13+
{ } // This should be a block body
1114
}

tests/baselines/reference/asiPreventsParsingAsInterface02.symbols

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@
33
function f(interface: number, I: string) {
44
>f : Symbol(f, Decl(asiPreventsParsingAsInterface02.ts, 0, 0))
55
>interface : Symbol(interface, Decl(asiPreventsParsingAsInterface02.ts, 1, 11))
6-
>I : Symbol(I, Decl(asiPreventsParsingAsInterface02.ts, 1, 29), Decl(asiPreventsParsingAsInterface02.ts, 1, 42))
6+
>I : Symbol(I, Decl(asiPreventsParsingAsInterface02.ts, 1, 29))
77

88
interface // This should be the identifier 'interface'
9+
>interface : Symbol(interface, Decl(asiPreventsParsingAsInterface02.ts, 1, 11))
10+
911
I // This should be the identifier 'I'
10-
>I : Symbol(I, Decl(asiPreventsParsingAsInterface02.ts, 1, 29), Decl(asiPreventsParsingAsInterface02.ts, 1, 42))
12+
>I : Symbol(I, Decl(asiPreventsParsingAsInterface02.ts, 1, 29))
1113

1214
{} // This should be a block body
1315
}

tests/baselines/reference/asiPreventsParsingAsInterface02.types

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ function f(interface: number, I: string) {
66
>I : string
77

88
interface // This should be the identifier 'interface'
9+
>interface : number
10+
911
I // This should be the identifier 'I'
10-
>I : I
12+
>I : string
1113

1214
{} // This should be a block body
1315
}

tests/baselines/reference/asiPreventsParsingAsInterface03.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ namespace n {
1010

1111
//// [asiPreventsParsingAsInterface03.js]
1212
var interface, I;
13+
var n;
14+
(function (n) {
15+
interface; // This should be the identifier 'interface'
16+
I; // This should be the identifier 'I'
17+
{ } // This should be a block body
18+
})(n || (n = {}));

tests/baselines/reference/asiPreventsParsingAsInterface03.symbols

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ namespace n {
88
>n : Symbol(n, Decl(asiPreventsParsingAsInterface03.ts, 1, 33))
99

1010
interface // This should be the identifier 'interface'
11+
>interface : Symbol(interface, Decl(asiPreventsParsingAsInterface03.ts, 1, 3))
12+
1113
I // This should be the identifier 'I'
12-
>I : Symbol(I, Decl(asiPreventsParsingAsInterface03.ts, 3, 13))
14+
>I : Symbol(I, Decl(asiPreventsParsingAsInterface03.ts, 1, 22))
1315

1416
{} // This should be a block body
1517
}

tests/baselines/reference/asiPreventsParsingAsInterface03.types

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ var interface: number, I: string;
55
>I : string
66

77
namespace n {
8-
>n : any
8+
>n : typeof n
99

1010
interface // This should be the identifier 'interface'
11+
>interface : number
12+
1113
I // This should be the identifier 'I'
12-
>I : I
14+
>I : string
1315

1416
{} // This should be a block body
1517
}

tests/baselines/reference/asiPreventsParsingAsInterface04.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@ I // This should be the identifier 'I'
1010
//// [asiPreventsParsingAsInterface04.js]
1111
var declare, interface, I;
1212
declare; // This should be the identifier 'declare'
13+
interface; // This should be the identifier 'interface'
14+
I; // This should be the identifier 'I'
15+
{ } // This should be a block body

0 commit comments

Comments
 (0)