Class: Ibex::Frontend::AST::SymbolReference

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



227
228
229
# File 'lib/ibex/frontend/ast.rb', line 227

def loc
  @loc
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



227
228
229
# File 'lib/ibex/frontend/ast.rb', line 227

def name
  @name
end

#named_referenceObject

Returns the value of attribute named_reference

Returns:

  • (Object)

    the current value of named_reference



227
228
229
# File 'lib/ibex/frontend/ast.rb', line 227

def named_reference
  @named_reference
end

Class Method Details

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

Overloads:

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

    Parameters:

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

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


318
319
# File 'sig/ibex/frontend/ast.rbs', line 318

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