Skip to content

Commit 405388a

Browse files
committed
chore: format
1 parent 3b0368b commit 405388a

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/parser/extend-parser.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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 */
180178
export 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
{

src/parser/validate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)