Class: MilkTea::AST::OpaqueDecl

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, implements:, c_name:, visibility:, line: nil, column: nil) ⇒ OpaqueDecl

Returns a new instance of OpaqueDecl.



97
# File 'lib/milk_tea/core/ast.rb', line 97

def initialize(name:, implements:, c_name:, visibility:, line: nil, column: nil) = super

Instance Attribute Details

#c_nameObject (readonly)

Returns the value of attribute c_name

Returns:

  • (Object)

    the current value of c_name



96
97
98
# File 'lib/milk_tea/core/ast.rb', line 96

def c_name
  @c_name
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



96
97
98
# File 'lib/milk_tea/core/ast.rb', line 96

def column
  @column
end

#implementsObject (readonly)

Returns the value of attribute implements

Returns:

  • (Object)

    the current value of implements



96
97
98
# File 'lib/milk_tea/core/ast.rb', line 96

def implements
  @implements
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



96
97
98
# File 'lib/milk_tea/core/ast.rb', line 96

def line
  @line
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



96
97
98
# File 'lib/milk_tea/core/ast.rb', line 96

def name
  @name
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



96
97
98
# File 'lib/milk_tea/core/ast.rb', line 96

def visibility
  @visibility
end