Class: Ibex::Frontend::AST::DisplayName

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



179
180
181
# File 'lib/ibex/frontend/ast.rb', line 179

def loc
  @loc
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



179
180
181
# File 'lib/ibex/frontend/ast.rb', line 179

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



179
180
181
# File 'lib/ibex/frontend/ast.rb', line 179

def value
  @value
end

Class Method Details

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

Overloads:

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

    Parameters:

    • name: (String)
    • value: (String)
    • loc: (Location)

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


248
249
# File 'sig/ibex/frontend/ast.rbs', line 248

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