Skip to content

Commit bd0aa5c

Browse files
committed
Mark Parser constructor as protected so plugins can extend it
FIX: Mark the `Parser` constructor as protected, not private, so plugins can extend it without type errors. Closes #1282
1 parent a3456a8 commit bd0aa5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acorn/src/acorn.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ export class Parser {
733733
options: Options
734734
input: string
735735

736-
private constructor(options: Options, input: string, startPos?: number)
736+
protected constructor(options: Options, input: string, startPos?: number)
737737
parse(): Program
738738

739739
static parse(input: string, options: Options): Program

0 commit comments

Comments
 (0)