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.



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

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



14
15
16
# File 'lib/milk_tea/core/ir.rb', line 14

def alignment
  @alignment
end

#fieldsObject (readonly)

Returns the value of attribute fields

Returns:

  • (Object)

    the current value of fields



14
15
16
# File 'lib/milk_tea/core/ir.rb', line 14

def fields
  @fields
end

#linkage_nameObject (readonly)

Returns the value of attribute linkage_name

Returns:

  • (Object)

    the current value of linkage_name



14
15
16
# File 'lib/milk_tea/core/ir.rb', line 14

def linkage_name
  @linkage_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



14
15
16
# File 'lib/milk_tea/core/ir.rb', line 14

def name
  @name
end

#packedObject (readonly)

Returns the value of attribute packed

Returns:

  • (Object)

    the current value of packed



14
15
16
# File 'lib/milk_tea/core/ir.rb', line 14

def packed
  @packed
end

#source_moduleObject (readonly)

Returns the value of attribute source_module

Returns:

  • (Object)

    the current value of source_module



14
15
16
# File 'lib/milk_tea/core/ir.rb', line 14

def source_module
  @source_module
end