File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -935,10 +935,6 @@ namespace ts {
935935 return false ;
936936 }
937937
938- function parseOptionalWithoutAdvancing ( t : SyntaxKind ) : boolean {
939- return token === t ;
940- }
941-
942938 function parseOptional ( t : SyntaxKind ) : boolean {
943939 if ( token === t ) {
944940 nextToken ( ) ;
@@ -3388,7 +3384,7 @@ namespace ts {
33883384 let attributes = parseList ( ParsingContext . JsxAttributes , parseJsxAttribute ) ;
33893385 let node : JsxOpeningLikeElement ;
33903386
3391- if ( parseOptionalWithoutAdvancing ( SyntaxKind . GreaterThanToken ) ) {
3387+ if ( token === SyntaxKind . GreaterThanToken ) {
33923388 // Closing tag, so scan the immediately-following text with the JSX scanning instead
33933389 // of regular scanning to avoid treating illegal characters (e.g. '#') as immediate
33943390 // scanning errors
You can’t perform that action at this time.
0 commit comments