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 {
12411241 // not in error recovery. If we're in error recovery, we don't want an errant
12421242 // semicolon to be treated as a class member (since they're almost always used
12431243 // for statements.
1244- return lookAhead ( isClassMemberStart ) || ( token ( ) === SyntaxKind . SemicolonToken && ! inErrorRecovery ) ;
1244+ return lookAhead ( isClassMemberStart ) || ( token ( ) === SyntaxKind . SemicolonToken && ! inErrorRecovery ) ;
12451245 case ParsingContext . EnumMembers :
12461246 // Include open bracket computed properties. This technically also lets in indexers,
12471247 // 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 {
767767 parsesCorrectly (
768768 "{null}" ,
769769 `{
770- "kind": "JSDocTypeReference ",
770+ "kind": "NullKeyword ",
771771 "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
780773}` ) ;
781774 } ) ;
782775
783776 it ( "keyword3" , ( ) => {
784777 parsesCorrectly (
785778 "{undefined}" ,
786779 `{
787- "kind": "JSDocTypeReference ",
780+ "kind": "UndefinedKeyword ",
788781 "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
797783}` ) ;
798784 } ) ;
799785
@@ -2379,4 +2365,4 @@ namespace ts {
23792365 } ) ;
23802366 } ) ;
23812367 } ) ;
2382- }
2368+ }
You can’t perform that action at this time.
0 commit comments