Class: Ibex::Frontend::AST::Alternative

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

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



213
214
215
# File 'lib/ibex/frontend/ast.rb', line 213

def action
  @action
end

#itemsObject

Returns the value of attribute items

Returns:

  • (Object)

    the current value of items



213
214
215
# File 'lib/ibex/frontend/ast.rb', line 213

def items
  @items
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



213
214
215
# File 'lib/ibex/frontend/ast.rb', line 213

def loc
  @loc
end

#node_annotationObject

Returns the value of attribute node_annotation

Returns:

  • (Object)

    the current value of node_annotation



213
214
215
# File 'lib/ibex/frontend/ast.rb', line 213

def node_annotation
  @node_annotation
end

#precedenceObject

Returns the value of attribute precedence

Returns:

  • (Object)

    the current value of precedence



213
214
215
# File 'lib/ibex/frontend/ast.rb', line 213

def precedence
  @precedence
end

Class Method Details

.new(items:, action:, precedence:, node_annotation:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(items:, action:, precedence:, node_annotation:, loc:) ⇒ instance

    Parameters:

    Returns:

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

    Parameters:

    Returns:

    • (instance)


296
297
# File 'sig/ibex/frontend/ast.rbs', line 296

def self.new: (?items: Array[item], ?action: InlineAction?, ?precedence: String?, ?node_annotation: NodeAnnotation?, ?loc: Location) -> instance
| ({ ?items: Array[item], ?action: InlineAction?, ?precedence: String?, ?node_annotation: NodeAnnotation?, ?loc: Location }) -> instance