Class: MilkTea::AST::FlagsDecl

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) ⇒ FlagsDecl

Returns a new instance of FlagsDecl.



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

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



90
91
92
# File 'lib/milk_tea/core/ast.rb', line 90

def attributes
  @attributes
end

#backing_typeObject (readonly)

Returns the value of attribute backing_type

Returns:

  • (Object)

    the current value of backing_type



90
91
92
# File 'lib/milk_tea/core/ast.rb', line 90

def backing_type
  @backing_type
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



90
91
92
# File 'lib/milk_tea/core/ast.rb', line 90

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



90
91
92
# File 'lib/milk_tea/core/ast.rb', line 90

def line
  @line
end

#membersObject (readonly)

Returns the value of attribute members

Returns:

  • (Object)

    the current value of members



90
91
92
# File 'lib/milk_tea/core/ast.rb', line 90

def members
  @members
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



90
91
92
# File 'lib/milk_tea/core/ast.rb', line 90

def name
  @name
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



90
91
92
# File 'lib/milk_tea/core/ast.rb', line 90

def visibility
  @visibility
end