File tree Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Expand file tree Collapse file tree 2 files changed +6
-20
lines changed Original file line number Diff line number Diff line change @@ -1241,7 +1241,7 @@ namespace ts {
1241
1241
// not in error recovery. If we're in error recovery, we don't want an errant
1242
1242
// semicolon to be treated as a class member (since they're almost always used
1243
1243
// for statements.
1244
- return lookAhead ( isClassMemberStart ) || ( token ( ) === SyntaxKind . SemicolonToken && ! inErrorRecovery ) ;
1244
+ return lookAhead ( isClassMemberStart ) || ( token ( ) === SyntaxKind . SemicolonToken && ! inErrorRecovery ) ;
1245
1245
case ParsingContext . EnumMembers :
1246
1246
// Include open bracket computed properties. This technically also lets in indexers,
1247
1247
// which would be a candidate for improved error reporting.
Original file line number Diff line number Diff line change @@ -767,33 +767,19 @@ namespace ts {
767
767
parsesCorrectly (
768
768
"{null}" ,
769
769
`{
770
- "kind": "JSDocTypeReference ",
770
+ "kind": "NullKeyword ",
771
771
"pos": 1,
772
- "end": 5,
773
- "name": {
774
- "kind": "Identifier",
775
- "pos": 1,
776
- "end": 5,
777
- "originalKeywordKind": "NullKeyword",
778
- "text": "null"
779
- }
772
+ "end": 5
780
773
}` ) ;
781
774
} ) ;
782
775
783
776
it ( "keyword3" , ( ) => {
784
777
parsesCorrectly (
785
778
"{undefined}" ,
786
779
`{
787
- "kind": "JSDocTypeReference ",
780
+ "kind": "UndefinedKeyword ",
788
781
"pos": 1,
789
- "end": 10,
790
- "name": {
791
- "kind": "Identifier",
792
- "pos": 1,
793
- "end": 10,
794
- "originalKeywordKind": "UndefinedKeyword",
795
- "text": "undefined"
796
- }
782
+ "end": 10
797
783
}` ) ;
798
784
} ) ;
799
785
@@ -2379,4 +2365,4 @@ namespace ts {
2379
2365
} ) ;
2380
2366
} ) ;
2381
2367
} ) ;
2382
- }
2368
+ }
You can’t perform that action at this time.
0 commit comments