class RBS::Parser::Token
Represents a token per result of Parser.lex.
Attributes
location
[R]
Location[untyped, untyped]
Public Class Methods
(type: Symbol, location: Location[untyped, untyped]) → void
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/parser/token.rb, line 9 def initialize(type:, location:) @type = type @location = location end
Public Instance Methods
() → bool
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/lib/rbs/parser/token.rb, line 18 def comment? @type == :tCOMMENT || @type == :tLINECOMMENT end