Class: MilkTea::SemanticAnalyzer::InterfaceBinding

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, methods:, ast:, module_name:, type_arguments: nil) ⇒ InterfaceBinding

Returns a new instance of InterfaceBinding.



67
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 67

def initialize(name:, methods:, ast:, module_name:, type_arguments: nil) = super

Instance Attribute Details

#astObject (readonly)

Returns the value of attribute ast

Returns:

  • (Object)

    the current value of ast



66
67
68
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 66

def ast
  @ast
end

#methodsObject (readonly)

Returns the value of attribute methods

Returns:

  • (Object)

    the current value of methods



66
67
68
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 66

def methods
  @methods
end

#module_nameObject (readonly)

Returns the value of attribute module_name

Returns:

  • (Object)

    the current value of module_name



66
67
68
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 66

def module_name
  @module_name
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



66
67
68
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 66

def name
  @name
end

#type_argumentsObject (readonly)

Returns the value of attribute type_arguments

Returns:

  • (Object)

    the current value of type_arguments



66
67
68
# File 'lib/milk_tea/core/semantic_analyzer.rb', line 66

def type_arguments
  @type_arguments
end