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
  <<~MESSAGE.strip
    Invalid #{token.type} token:
    #{token.display_location}
  MESSAGE
end