Class: MilkTea::IR::Program

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(module_name:, includes:, constants:, globals:, opaques:, structs:, unions:, enums:, variants:, static_asserts:, functions:, source_path: nil) ⇒ Program

Returns a new instance of Program.



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

def initialize(module_name:, includes:, constants:, globals:, opaques:, structs:, unions:, enums:, variants:, static_asserts:, functions:, source_path: nil) = super

Instance Attribute Details

#constantsObject (readonly)

Returns the value of attribute constants

Returns:

  • (Object)

    the current value of constants



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def constants
  @constants
end

#enumsObject (readonly)

Returns the value of attribute enums

Returns:

  • (Object)

    the current value of enums



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def enums
  @enums
end

#functionsObject (readonly)

Returns the value of attribute functions

Returns:

  • (Object)

    the current value of functions



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def functions
  @functions
end

#globalsObject (readonly)

Returns the value of attribute globals

Returns:

  • (Object)

    the current value of globals



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def globals
  @globals
end

#includesObject (readonly)

Returns the value of attribute includes

Returns:

  • (Object)

    the current value of includes



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def includes
  @includes
end

#module_nameObject (readonly)

Returns the value of attribute module_name

Returns:

  • (Object)

    the current value of module_name



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def module_name
  @module_name
end

#opaquesObject (readonly)

Returns the value of attribute opaques

Returns:

  • (Object)

    the current value of opaques



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def opaques
  @opaques
end

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def source_path
  @source_path
end

#static_assertsObject (readonly)

Returns the value of attribute static_asserts

Returns:

  • (Object)

    the current value of static_asserts



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def static_asserts
  @static_asserts
end

#structsObject (readonly)

Returns the value of attribute structs

Returns:

  • (Object)

    the current value of structs



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def structs
  @structs
end

#unionsObject (readonly)

Returns the value of attribute unions

Returns:

  • (Object)

    the current value of unions



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def unions
  @unions
end

#variantsObject (readonly)

Returns the value of attribute variants

Returns:

  • (Object)

    the current value of variants



5
6
7
# File 'lib/milk_tea/core/ir.rb', line 5

def variants
  @variants
end