Class: MilkTea::AST::InterfaceDecl

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:, type_params: [], methods:, visibility:, line: nil, column: nil) ⇒ InterfaceDecl

Returns a new instance of InterfaceDecl.



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

def initialize(name:, type_params: [], methods:, visibility:, line: nil, column: nil) = super

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



99
100
101
# File 'lib/milk_tea/core/ast.rb', line 99

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



99
100
101
# File 'lib/milk_tea/core/ast.rb', line 99

def line
  @line
end

#methodsObject (readonly)

Returns the value of attribute methods

Returns:

  • (Object)

    the current value of methods



99
100
101
# File 'lib/milk_tea/core/ast.rb', line 99

def methods
  @methods
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



99
100
101
# File 'lib/milk_tea/core/ast.rb', line 99

def name
  @name
end

#type_paramsObject (readonly)

Returns the value of attribute type_params

Returns:

  • (Object)

    the current value of type_params



99
100
101
# File 'lib/milk_tea/core/ast.rb', line 99

def type_params
  @type_params
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



99
100
101
# File 'lib/milk_tea/core/ast.rb', line 99

def visibility
  @visibility
end