Class: Mutant::AST::Pattern::Lexer::Error::InvalidToken Private

Inherits:
Mutant::AST::Pattern::Lexer::Error show all
Defined in:
lib/mutant/ast/pattern/lexer.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#display_messageObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



29
30
31
32
33
34
# File 'lib/mutant/ast/pattern/lexer.rb', line 29

def display_message
  "    Invalid \#{token.type} token:\n    \#{token.display_location}\n  MESSAGE\nend\n".strip