D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
ruby34
/
share
/
gems
/
gems
/
rbs-3.8.0
/
lib
/
rbs
/
parser
/
Filename :
token.rb
back
Copy
# frozen_string_literal: true module RBS class Parser class Token attr_reader :type attr_reader :location def initialize(type:, location:) @type = type @location = location end def value @location.source end def comment? @type == :tCOMMENT || @type == :tLINECOMMENT end end end end