Class: MilkTea::AST::VariantArm

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, fields:, line: nil, column: nil) ⇒ VariantArm

Returns a new instance of VariantArm.



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

def initialize(name:, fields:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



153
154
155
# File 'lib/milk_tea/core/ast.rb', line 153

def column
  @column
end

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



153
154
155
# File 'lib/milk_tea/core/ast.rb', line 153

def fields
  @fields
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



153
154
155
# File 'lib/milk_tea/core/ast.rb', line 153

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



153
154
155
# File 'lib/milk_tea/core/ast.rb', line 153

def name
  @name
end