Class: MilkTea::AST::EnumDecl

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:, backing_type:, members:, visibility:, attributes: [], line: nil, column: nil) ⇒ EnumDecl

Returns a new instance of EnumDecl.



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

def initialize(name:, backing_type:, members:, visibility:, attributes: [], line: nil, column: nil) = super

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



87
88
89
# File 'lib/milk_tea/core/ast.rb', line 87

def attributes
  @attributes
end

#backing_typeObject (readonly)

Returns the value of attribute backing_type

Returns:

  • (Object)

    the current value of backing_type



87
88
89
# File 'lib/milk_tea/core/ast.rb', line 87

def backing_type
  @backing_type
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



87
88
89
# File 'lib/milk_tea/core/ast.rb', line 87

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



87
88
89
# File 'lib/milk_tea/core/ast.rb', line 87

def line
  @line
end

#membersObject (readonly)

Returns the value of attribute members

Returns:

  • (Object)

    the current value of members



87
88
89
# File 'lib/milk_tea/core/ast.rb', line 87

def members
  @members
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



87
88
89
# File 'lib/milk_tea/core/ast.rb', line 87

def name
  @name
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



87
88
89
# File 'lib/milk_tea/core/ast.rb', line 87

def visibility
  @visibility
end