Class: Ibex::Frontend::AST::Lexer

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

#definitionsObject

Returns the value of attribute definitions

Returns:

  • (Object)

    the current value of definitions



148
149
150
# File 'lib/ibex/frontend/ast.rb', line 148

def definitions
  @definitions
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



148
149
150
# File 'lib/ibex/frontend/ast.rb', line 148

def loc
  @loc
end

Class Method Details

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

Overloads:

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

    Parameters:

    • definitions: (Array[lexer_entry])
    • loc: (Location)

    Returns:

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

    Parameters:

    • arg0 ({ ?definitions: Array[lexer_entry], ?loc: Location })

    Returns:

    • (instance)


189
190
# File 'sig/ibex/frontend/ast.rbs', line 189

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