ParseWithPositions parses tokens with position tracking for enhanced error reporting. ParseWithPositions parses a ConversionResult into an AST. Since models.TokenWithSpan already embeds span/position information, this is now a thin wrapper around parseTokens - no separate conversion step needed. T
(result *ConversionResult)
| 354 | // |
| 355 | // Thread Safety: NOT thread-safe - use separate parser instances per goroutine. |
| 356 | func (p *Parser) ParseWithPositions(result *ConversionResult) (*ast.AST, error) { |
| 357 | return p.parseTokens(result.Tokens) |
| 358 | } |
| 359 | |
| 360 | // ParseContext parses tokens into an AST with context support for cancellation and timeouts. |
| 361 | // |
nothing calls this directly
no test coverage detected