MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / new

Method new

crates/sith_python_parser/src/error.rs:316–318  ·  view source on GitHub ↗

Creates a new `LexicalError` with the given error type and location.

(error: LexicalErrorType, location: TextRange)

Source from the content-addressed store, hash-verified

314impl 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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected