Skip to content

Commit

Permalink
Parser: allow classes that extend Parser to access the instance attri…
Browse files Browse the repository at this point in the history
…butes (#3248)
  • Loading branch information
n1ru4l committed Aug 27, 2021
1 parent 2d61e22 commit 976d64b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/language/parser.ts
Expand Up @@ -179,8 +179,8 @@ export function parseType(
* @internal
*/
export class Parser {
private _options: Maybe<ParseOptions>;
private _lexer: Lexer;
protected _options: Maybe<ParseOptions>;
protected _lexer: Lexer;

constructor(source: string | Source, options?: ParseOptions) {
const sourceObj = isSource(source) ? source : new Source(source);
Expand Down

0 comments on commit 976d64b

Please sign in to comment.