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, path: nil) ⇒ LocalDecl

Returns a new instance of LocalDecl.



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

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

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



30
31
32
# File 'lib/milk_tea/core/ir.rb', line 30

def line
  @line
end

#linkage_nameObject (readonly)

Returns the value of attribute linkage_name

Returns:

  • (Object)

    the current value of linkage_name



30
31
32
# File 'lib/milk_tea/core/ir.rb', line 30

def linkage_name
  @linkage_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



30
31
32
# File 'lib/milk_tea/core/ir.rb', line 30

def name
  @name
end

#pathObject (readonly)

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



30
31
32
# File 'lib/milk_tea/core/ir.rb', line 30

def path
  @path
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



30
31
32
# File 'lib/milk_tea/core/ir.rb', line 30

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



30
31
32
# File 'lib/milk_tea/core/ir.rb', line 30

def value
  @value
end