Class: Ibex::Frontend::AST::UserCode

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

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



276
277
278
# File 'lib/ibex/frontend/ast.rb', line 276

def code
  @code
end

#locObject

Returns the value of attribute loc

Returns:

  • (Object)

    the current value of loc



276
277
278
# File 'lib/ibex/frontend/ast.rb', line 276

def loc
  @loc
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



276
277
278
# File 'lib/ibex/frontend/ast.rb', line 276

def name
  @name
end

Class Method Details

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

Overloads:

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

    Parameters:

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

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


407
408
# File 'sig/ibex/frontend/ast.rbs', line 407

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