Class: Ibex::Frontend::AST::Recovery

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

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



132
133
134
# File 'lib/ibex/frontend/ast.rb', line 132

def loc
  @loc
end

#sync_tokensObject

Returns the value of attribute sync_tokens

Returns:

  • (Object)

    the current value of sync_tokens



132
133
134
# File 'lib/ibex/frontend/ast.rb', line 132

def sync_tokens
  @sync_tokens
end

Class Method Details

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

Overloads:

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

    Parameters:

    • sync_tokens: (Array[String])
    • loc: (Location)

    Returns:

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

    Parameters:

    • arg0 ({ ?sync_tokens: Array[String], ?loc: Location })

    Returns:

    • (instance)


160
161
# File 'sig/ibex/frontend/ast.rbs', line 160

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