Class: Ibex::Frontend::AST::Include

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



89
90
91
# File 'lib/ibex/frontend/ast.rb', line 89

def loc
  @loc
end

#pathObject

Returns the value of attribute path

Returns:

  • (Object)

    the current value of path



89
90
91
# File 'lib/ibex/frontend/ast.rb', line 89

def path
  @path
end

Class Method Details

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

Overloads:

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

    Parameters:

    Returns:

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

    Parameters:

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

    Returns:

    • (instance)


82
83
# File 'sig/ibex/frontend/ast.rbs', line 82

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