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