Class: MilkTea::IR::LocalDecl

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:, type:, value:, line: nil, source_path: nil) ⇒ LocalDecl

Returns a new instance of LocalDecl.



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

def initialize(name:, linkage_name:, type:, value:, line: nil, source_path: nil) = super

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



28
29
30
# File 'lib/milk_tea/core/ir.rb', line 28

def line
  @line
end

#linkage_nameObject (readonly)

Returns the value of attribute linkage_name

Returns:

  • (Object)

    the current value of linkage_name



28
29
30
# File 'lib/milk_tea/core/ir.rb', line 28

def linkage_name
  @linkage_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



28
29
30
# File 'lib/milk_tea/core/ir.rb', line 28

def name
  @name
end

#source_pathObject (readonly)

Returns the value of attribute source_path

Returns:

  • (Object)

    the current value of source_path



28
29
30
# File 'lib/milk_tea/core/ir.rb', line 28

def source_path
  @source_path
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



28
29
30
# File 'lib/milk_tea/core/ir.rb', line 28

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



28
29
30
# File 'lib/milk_tea/core/ir.rb', line 28

def value
  @value
end