class Parser::Lexer

def diagnostic(type, message, location=range, highlights=[])

def diagnostic(type, message, location=range, highlights=[])
  @diagnostics.process(
      Parser::Diagnostic.new(type, message, location, highlights))
end