fn error(&self, token: &Token, kind: ErrorKind) -> Error {
      Error::Compile {
         module_name: Rc::clone(&self.lexer.module_name),
         kind,
         location: token.location,
      }
   }
/// Constructs a compilation error located at the given token.
Constructs a compilation error located at the given token.
Constructs a compilation error located at the given token .
fn error(&self, token: &Token, kind: ErrorKind) -> Error {
      Error::Compile {
         module_name: Rc::clone(&self.lexer.module_name),
         kind,
         location: token.location,
      }
   }
fn error ( & self , token : & Token , kind : ErrorKind ) -> Error { Error :: Compile { module_name : Rc :: clone ( & self . lexer . module_name ) , kind , location : token . location , } }
Constructs a compilation error located at the given token.
Constructs a compilation error located at the given token .
&self
token
&Token
kind
ErrorKind