Skip to content

class Crystal::Token
inherits Reference

Class methods

Methods

#column_number : Int32

View source

#column_number=(column_number : Int32)

View source

#copy_from(other)

View source

#delimiter_state : DelimiterState

View source

#delimiter_state=(delimiter_state : DelimiterState)

View source

#doc_buffer : IO::Memory?

View source

#doc_buffer=(doc_buffer : IO::Memory?)

View source

#filename : String | VirtualFile | Nil

View source

#filename=(filename : String | VirtualFile | Nil)

View source

#invalid_escape : Bool

View source

#invalid_escape=(invalid_escape : Bool)

View source

#keyword?

View source

#keyword?(keyword)

View source

#line_number : Int32

View source

#line_number=(line_number : Int32)

View source

#location

View source

#location=(location)

View source

#macro_state : MacroState

View source

#macro_state=(macro_state : MacroState)

View source

#number_kind : Symbol

View source

#number_kind=(number_kind : Symbol)

View source

#passed_backslash_newline : Bool

View source

#passed_backslash_newline=(passed_backslash_newline : Bool)

View source

#raw=(raw : String)

View source

#start : Int32

View source

#start=(start : Int32)

View 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>
View source

#token?(token)

View source

#type=(type : Symbol)

View source

#value : Char | String | Symbol | Nil

View source

#value=(value : Char | String | Symbol | Nil)

View source