Class: Ibex::Frontend::AST::OnErrorReduce

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



137
138
139
# File 'lib/ibex/frontend/ast.rb', line 137

def loc
  @loc
end

#namesObject

Returns the value of attribute names

Returns:

  • (Object)

    the current value of names



137
138
139
# File 'lib/ibex/frontend/ast.rb', line 137

def names
  @names
end

Class Method Details

.new(names:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(names:, loc:) ⇒ instance

    Parameters:

    • names: (Array[String])
    • loc: (Location)

    Returns:

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

    Parameters:

    • arg0 ({ ?names: Array[String], ?loc: Location })

    Returns:

    • (instance)


169
170
# File 'sig/ibex/frontend/ast.rbs', line 169

def self.new: (?names: Array[String], ?loc: Location) -> instance
| ({ ?names: Array[String], ?loc: Location }) -> instance