Class: Ibex::Frontend::AST::Group

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

#alternativesObject

Returns the value of attribute alternatives

Returns:

  • (Object)

    the current value of alternatives



264
265
266
# File 'lib/ibex/frontend/ast.rb', line 264

def alternatives
  @alternatives
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



264
265
266
# File 'lib/ibex/frontend/ast.rb', line 264

def loc
  @loc
end

Class Method Details

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

Overloads:

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

    Parameters:

    • alternatives: (Array[Array[item]])
    • loc: (Location)

    Returns:

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

    Parameters:

    • arg0 ({ ?alternatives: Array[Array[item]], ?loc: Location })

    Returns:

    • (instance)


383
384
# File 'sig/ibex/frontend/ast.rbs', line 383

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