Class: Ibex::Frontend::AST::Conversion

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

#expressionObject

Returns the value of attribute expression

Returns:

  • (Object)

    the current value of expression



173
174
175
# File 'lib/ibex/frontend/ast.rb', line 173

def expression
  @expression
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



173
174
175
# File 'lib/ibex/frontend/ast.rb', line 173

def loc
  @loc
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



173
174
175
# File 'lib/ibex/frontend/ast.rb', line 173

def name
  @name
end

Class Method Details

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

Overloads:

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

    Parameters:

    • name: (String)
    • expression: (String)
    • loc: (Location)

    Returns:

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

    Parameters:

    • arg0 ({ ?name: String, ?expression: String, ?loc: Location })

    Returns:

    • (instance)


237
238
# File 'sig/ibex/frontend/ast.rbs', line 237

def self.new: (?name: String, ?expression: String, ?loc: Location) -> instance
| ({ ?name: String, ?expression: String, ?loc: Location }) -> instance