Class: MilkTea::IR::StructDecl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, linkage_name:, fields:, packed:, alignment:, source_module: nil) ⇒ StructDecl

Returns a new instance of StructDecl.



17
# File 'lib/milk_tea/core/ir.rb', line 17

def initialize(name:, linkage_name:, fields:, packed:, alignment:, source_module: nil) = super

Instance Attribute Details

#alignmentObject (readonly)

Returns the value of attribute alignment

Returns:

  • (Object)

    the current value of alignment



16
17
18
# File 'lib/milk_tea/core/ir.rb', line 16

def alignment
  @alignment
end

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



16
17
18
# File 'lib/milk_tea/core/ir.rb', line 16

def fields
  @fields
end

#linkage_nameObject (readonly)

Returns the value of attribute linkage_name

Returns:

  • (Object)

    the current value of linkage_name



16
17
18
# File 'lib/milk_tea/core/ir.rb', line 16

def linkage_name
  @linkage_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/milk_tea/core/ir.rb', line 16

def name
  @name
end

#packedObject (readonly)

Returns the value of attribute packed

Returns:

  • (Object)

    the current value of packed



16
17
18
# File 'lib/milk_tea/core/ir.rb', line 16

def packed
  @packed
end

#source_moduleObject (readonly)

Returns the value of attribute source_module

Returns:

  • (Object)

    the current value of source_module



16
17
18
# File 'lib/milk_tea/core/ir.rb', line 16

def source_module
  @source_module
end