class

Syntax::Token

Inherits Reference < Object

Constructors

Instance methods

column_number
Source
column_number=(column_number : Int32)
Source
copy_from(other)
Source
delimiter_state
Source
delimiter_state=(delimiter_state : DelimiterState)
Source
doc_buffer
Source
doc_buffer=(doc_buffer : IO::Memory | Nil)
Source
filename
Source
filename=(filename : String | VirtualFile | Nil)
Source
invalid_escape
Source
invalid_escape=(invalid_escape : Bool)
Source
keyword?(keyword)
Source
keyword?
Source
line_number
Source
line_number=(line_number : Int32)
Source
location
Source
location=(location : Nil | Syntax::Location)
Source
macro_state
Source
macro_state=(macro_state : MacroState)
Source
number_kind
Source
number_kind=(number_kind : NumberKind)
Source
passed_backslash_newline
Source
passed_backslash_newline=(passed_backslash_newline : Bool)
Source
raw=(raw : String)
Source
start
Source
start=(start : Int32)
Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source
token?(token)
Source
type
Source
type=(type : Symbol)
Source
value
Source
value=(value : Char | String | Symbol | Nil)
Source

Nested types