Class: Ibex::Frontend::AST::Parameter

Inherits:
Struct
  • Object
show all
Includes:
Node
Defined in:
lib/ibex/frontend/ast.rb,
sig/ibex/frontend/ast.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Node

#serialize, #to_h

Instance Attribute Details

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



191
192
193
# File 'lib/ibex/frontend/ast.rb', line 191

def loc
  @loc
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



191
192
193
# File 'lib/ibex/frontend/ast.rb', line 191

def name
  @name
end

#semantic_typeObject

Returns the value of attribute semantic_type

Returns:

  • (Object)

    the current value of semantic_type



191
192
193
# File 'lib/ibex/frontend/ast.rb', line 191

def semantic_type
  @semantic_type
end

Class Method Details

.new(name:, semantic_type:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(name:, semantic_type:, loc:) ⇒ instance

    Parameters:

    • name: (String)
    • semantic_type: (String, nil)
    • loc: (Location)

    Returns:

    • (instance)
  • .new(arg0) ⇒ instance

    Parameters:

    • arg0 ({ ?name: String, ?semantic_type: String?, ?loc: Location })

    Returns:

    • (instance)


270
271
# File 'sig/ibex/frontend/ast.rbs', line 270

def self.new: (?name: String, ?semantic_type: String?, ?loc: Location) -> instance
| ({ ?name: String, ?semantic_type: String?, ?loc: Location }) -> instance