Creates a new `LexicalError` with the given error type and location.
(error: LexicalErrorType, location: TextRange)
| 350 | impl LexicalError { |
| 351 | /// Creates a new `LexicalError` with the given error type and location. |
| 352 | pub fn new(error: LexicalErrorType, location: TextRange) -> Self { |
| 353 | Self { error, location } |
| 354 | } |
| 355 | |
| 356 | pub fn error(&self) -> &LexicalErrorType { |
| 357 | &self.error |
nothing calls this directly
no outgoing calls
no test coverage detected