Class: MilkTea::AST::NullLiteral

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, line: nil, column: nil) ⇒ NullLiteral

Returns a new instance of NullLiteral.



252
# File 'lib/milk_tea/core/ast.rb', line 252

def initialize(type:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



251
252
253
# File 'lib/milk_tea/core/ast.rb', line 251

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



251
252
253
# File 'lib/milk_tea/core/ast.rb', line 251

def line
  @line
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



251
252
253
# File 'lib/milk_tea/core/ast.rb', line 251

def type
  @type
end