Class: MilkTea::AST::ForeignFunctionDecl

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:, params:, return_type:, variadic:, mapping:, visibility:, attributes: [], line: nil, column: nil) ⇒ ForeignFunctionDecl

Returns a new instance of ForeignFunctionDecl.



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

def initialize(name:, type_params:, params:, return_type:, variadic:, mapping:, visibility:, attributes: [], line: nil, column: nil) = super

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes

Returns:

  • (Object)

    the current value of attributes



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def attributes
  @attributes
end

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def column
  @column
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def line
  @line
end

#mappingObject (readonly)

Returns the value of attribute mapping

Returns:

  • (Object)

    the current value of mapping



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def mapping
  @mapping
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def name
  @name
end

#paramsObject (readonly)

Returns the value of attribute params

Returns:

  • (Object)

    the current value of params



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def params
  @params
end

#return_typeObject (readonly)

Returns the value of attribute return_type

Returns:

  • (Object)

    the current value of return_type



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def return_type
  @return_type
end

#type_paramsObject (readonly)

Returns the value of attribute type_params

Returns:

  • (Object)

    the current value of type_params



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def type_params
  @type_params
end

#variadicObject (readonly)

Returns the value of attribute variadic

Returns:

  • (Object)

    the current value of variadic



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def variadic
  @variadic
end

#visibilityObject (readonly)

Returns the value of attribute visibility

Returns:

  • (Object)

    the current value of visibility



129
130
131
# File 'lib/milk_tea/core/ast.rb', line 129

def visibility
  @visibility
end