Class: Ibex::Frontend::AST::SeparatedList

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

#itemObject

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



269
270
271
# File 'lib/ibex/frontend/ast.rb', line 269

def item
  @item
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



269
270
271
# File 'lib/ibex/frontend/ast.rb', line 269

def loc
  @loc
end

#nonemptyObject

Returns the value of attribute nonempty

Returns:

  • (Object)

    the current value of nonempty



269
270
271
# File 'lib/ibex/frontend/ast.rb', line 269

def nonempty
  @nonempty
end

#separatorObject

Returns the value of attribute separator

Returns:

  • (Object)

    the current value of separator



269
270
271
# File 'lib/ibex/frontend/ast.rb', line 269

def separator
  @separator
end

Class Method Details

.new(item:, separator:, nonempty:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(item:, separator:, nonempty:, loc:) ⇒ instance

    Parameters:

    Returns:

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

    Parameters:

    Returns:

    • (instance)


396
397
# File 'sig/ibex/frontend/ast.rbs', line 396

def self.new: (?item: item, ?separator: item, ?nonempty: bool, ?loc: Location) -> instance
| ({ ?item: item, ?separator: item, ?nonempty: bool, ?loc: Location }) -> instance