pub fn error(&self, node: NodeId, kind: ErrorKind) -> Error {
      Error::Compile {
         module_name: Rc::clone(&self.module_name),
         kind,
         location: self.location(node),
      }
   }
/// Constructs a compile error at the given node.
Constructs a compile error at the given node.
Constructs a compile error at the given node .
pub fn error(&self, node: NodeId, kind: ErrorKind) -> Error {
      Error::Compile {
         module_name: Rc::clone(&self.module_name),
         kind,
         location: self.location(node),
      }
   }
pub fn error ( & self , node : NodeId , kind : ErrorKind ) -> Error { Error :: Compile { module_name : Rc :: clone ( & self . module_name ) , kind , location : self . location ( node ) , } }
Constructs a compile error at the given node.
Constructs a compile error at the given node .
&self
node
NodeId
kind
ErrorKind