(
input: string,
parseSourceSpan: ParseSourceSpan,
absoluteOffset: number,
)
| 103 | constructor(private readonly _lexer: Lexer) {} |
| 104 | |
| 105 | parseAction( |
| 106 | input: string, |
| 107 | parseSourceSpan: ParseSourceSpan, |
| 108 | absoluteOffset: number, |
| 109 | ): ASTWithSource { |
| 110 | const errors: ParseError[] = []; |
| 111 | this._checkNoInterpolation(errors, input, parseSourceSpan); |
| 112 | const {stripped: sourceToLex} = this._stripComments(input); |
| 113 | const tokens = this._lexer.tokenize(sourceToLex); |
| 114 | const ast = new _ParseAST( |
| 115 | input, |
| 116 | parseSourceSpan, |
| 117 | absoluteOffset, |
| 118 | tokens, |
| 119 | ParseFlags.Action, |
| 120 | errors, |
| 121 | 0, |
| 122 | ).parseChain(); |
| 123 | |
| 124 | return new ASTWithSource(ast, input, getLocation(parseSourceSpan), absoluteOffset, errors); |
| 125 | } |
| 126 | |
| 127 | parseBinding( |
| 128 | input: string, |
no test coverage detected