Creates a new `LexicalError` with the given error type and location.
(error: LexicalErrorType, location: TextRange)
| 314 | impl LexicalError { |
| 315 | /// Creates a new `LexicalError` with the given error type and location. |
| 316 | pub fn new(error: LexicalErrorType, location: TextRange) -> Self { |
| 317 | Self { error, location } |
| 318 | } |
| 319 | |
| 320 | pub fn error(&self) -> &LexicalErrorType { |
| 321 | &self.error |
nothing calls this directly
no outgoing calls
no test coverage detected