Class: Ibex::Frontend::AST::GrammarTest

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

#expectationObject

Returns the value of attribute expectation

Returns:

  • (Object)

    the current value of expectation



142
143
144
# File 'lib/ibex/frontend/ast.rb', line 142

def expectation
  @expectation
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



142
143
144
# File 'lib/ibex/frontend/ast.rb', line 142

def loc
  @loc
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



142
143
144
# File 'lib/ibex/frontend/ast.rb', line 142

def source
  @source
end

Class Method Details

.new(expectation:, source:, loc:) ⇒ instance .new(arg0) ⇒ instance

Overloads:

  • .new(expectation:, source:, loc:) ⇒ instance

    Parameters:

    • expectation: (Symbol)
    • source: (String)
    • loc: (Location)

    Returns:

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

    Parameters:

    • arg0 ({ ?expectation: Symbol, ?source: String, ?loc: Location })

    Returns:

    • (instance)


180
181
# File 'sig/ibex/frontend/ast.rbs', line 180

def self.new: (?expectation: Symbol, ?source: String, ?loc: Location) -> instance
| ({ ?expectation: Symbol, ?source: String, ?loc: Location }) -> instance