Class: MilkTea::IR::Program
- Inherits:
-
Data
- Object
- Data
- MilkTea::IR::Program
- Defined in:
- lib/milk_tea/core/ir.rb
Instance Attribute Summary collapse
-
#constants ⇒ Object
readonly
Returns the value of attribute constants.
-
#enums ⇒ Object
readonly
Returns the value of attribute enums.
-
#functions ⇒ Object
readonly
Returns the value of attribute functions.
-
#globals ⇒ Object
readonly
Returns the value of attribute globals.
-
#includes ⇒ Object
readonly
Returns the value of attribute includes.
-
#module_name ⇒ Object
readonly
Returns the value of attribute module_name.
-
#opaques ⇒ Object
readonly
Returns the value of attribute opaques.
-
#source_path ⇒ Object
readonly
Returns the value of attribute source_path.
-
#static_asserts ⇒ Object
readonly
Returns the value of attribute static_asserts.
-
#structs ⇒ Object
readonly
Returns the value of attribute structs.
-
#unions ⇒ Object
readonly
Returns the value of attribute unions.
-
#variants ⇒ Object
readonly
Returns the value of attribute variants.
Instance Method Summary collapse
-
#initialize(module_name:, includes:, constants:, globals:, opaques:, structs:, unions:, enums:, variants:, static_asserts:, functions:, source_path: nil) ⇒ Program
constructor
A new instance of Program.
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
#constants ⇒ Object (readonly)
Returns the value of attribute constants
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def constants @constants end |
#enums ⇒ Object (readonly)
Returns the value of attribute enums
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def enums @enums end |
#functions ⇒ Object (readonly)
Returns the value of attribute functions
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def functions @functions end |
#globals ⇒ Object (readonly)
Returns the value of attribute globals
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def globals @globals end |
#includes ⇒ Object (readonly)
Returns the value of attribute includes
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def includes @includes end |
#module_name ⇒ Object (readonly)
Returns the value of attribute module_name
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def module_name @module_name end |
#opaques ⇒ Object (readonly)
Returns the value of attribute opaques
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def opaques @opaques end |
#source_path ⇒ Object (readonly)
Returns the value of attribute source_path
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def source_path @source_path end |
#static_asserts ⇒ Object (readonly)
Returns the value of attribute static_asserts
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def static_asserts @static_asserts end |
#structs ⇒ Object (readonly)
Returns the value of attribute structs
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def structs @structs end |
#unions ⇒ Object (readonly)
Returns the value of attribute unions
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def unions @unions end |
#variants ⇒ Object (readonly)
Returns the value of attribute variants
5 6 7 |
# File 'lib/milk_tea/core/ir.rb', line 5 def variants @variants end |