Class: Ibex::Frontend::AST::PrecedenceLevel

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

#associativityObject

Returns the value of attribute associativity

Returns:

  • (Object)

    the current value of associativity



106
107
108
# File 'lib/ibex/frontend/ast.rb', line 106

def associativity
  @associativity
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



106
107
108
# File 'lib/ibex/frontend/ast.rb', line 106

def loc
  @loc
end

#symbolsObject

Returns the value of attribute symbols

Returns:

  • (Object)

    the current value of symbols



106
107
108
# File 'lib/ibex/frontend/ast.rb', line 106

def symbols
  @symbols
end

Class Method Details

.new(associativity:, symbols:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(associativity:, symbols:, loc:) ⇒ instance

    Parameters:

    • associativity: (Symbol)
    • symbols: (Array[String])
    • loc: (Location)

    Returns:

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

    Parameters:

    • arg0 ({ ?associativity: Symbol, ?symbols: Array[String], ?loc: Location })

    Returns:

    • (instance)


115
116
# File 'sig/ibex/frontend/ast.rbs', line 115

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