Class: Ibex::Frontend::AST::LexerState

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



162
163
164
# File 'lib/ibex/frontend/ast.rb', line 162

def definitions
  @definitions
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



162
163
164
# File 'lib/ibex/frontend/ast.rb', line 162

def loc
  @loc
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



162
163
164
# File 'lib/ibex/frontend/ast.rb', line 162

def name
  @name
end

Class Method Details

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

Overloads:

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

    Parameters:

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

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


217
218
# File 'sig/ibex/frontend/ast.rbs', line 217

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