Class: MilkTea::TriviaToken

Inherits:
Data
  • Object
show all
Defined in:
lib/milk_tea/core/token.rb

Instance Attribute Summary collapse

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



4
5
6
# File 'lib/milk_tea/core/token.rb', line 4

def column
  @column
end

#end_offsetObject (readonly)

Returns the value of attribute end_offset

Returns:

  • (Object)

    the current value of end_offset



4
5
6
# File 'lib/milk_tea/core/token.rb', line 4

def end_offset
  @end_offset
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



4
5
6
# File 'lib/milk_tea/core/token.rb', line 4

def kind
  @kind
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



4
5
6
# File 'lib/milk_tea/core/token.rb', line 4

def line
  @line
end

#start_offsetObject (readonly)

Returns the value of attribute start_offset

Returns:

  • (Object)

    the current value of start_offset



4
5
6
# File 'lib/milk_tea/core/token.rb', line 4

def start_offset
  @start_offset
end

#textObject (readonly)

Returns the value of attribute text

Returns:

  • (Object)

    the current value of text



4
5
6
# File 'lib/milk_tea/core/token.rb', line 4

def text
  @text
end