File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,7 @@ export function getParser(): typeof Parser {
2222 return parserCache ;
2323 }
2424
25- parserCache = class ExtendParser
26- extends getAcorn ( ) . Parser
27- {
25+ parserCache = class ExtendParser extends getAcorn ( ) . Parser {
2826 private [ PRIVATE ] : {
2927 code : string ;
3028 ctx : JSONSyntaxContext ;
@@ -178,9 +176,7 @@ export function getParser(): typeof Parser {
178176
179177/** Get extend parser */
180178export function getAnyTokenErrorParser ( ) : typeof Parser {
181- const parser = class ExtendParser
182- extends getParser ( )
183- {
179+ const parser = class ExtendParser extends getParser ( ) {
184180 public constructor ( options : Options , code : string , pos : number ) {
185181 super (
186182 {
Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ function validateBinaryExpressionNode(
506506 ) {
507507 throw throwOperatorError ( ) ;
508508 }
509- if ( left . type === ' PrivateIdentifier' ) {
509+ if ( left . type === " PrivateIdentifier" ) {
510510 throw throwUnexpectedNodeError ( left , tokens ) ;
511511 }
512512 validateExpr ( left , throwOperatorError ) ;
You can’t perform that action at this time.
0 commit comments