class Jazzy::SymbolGraph::ExtSymNode
An ExtSymNode
is an extension generated from a Swift 5.9 extension symbol, for extensions of types from other modules only.
Attributes
symbol[RW]
Public Class Methods
new(symbol)
click to toggle source
Calls superclass method
Jazzy::SymbolGraph::ExtNode::new
# File lib/jazzy/symbol_graph/ext_node.rb, line 124 def initialize(symbol) self.symbol = symbol super(symbol.usr, symbol.full_name, # sadly can't tell what constraints are inherited vs added ExtConstraints.new([], symbol.constraints)) end
Public Instance Methods
ext_key()
click to toggle source
# File lib/jazzy/symbol_graph/ext_key.rb, line 32 def ext_key ExtKey.new(usr, all_constraints.ext) end
to_sourcekit(module_name, ext_module_name)
click to toggle source
Calls superclass method
Jazzy::SymbolGraph::ExtNode#to_sourcekit
# File lib/jazzy/symbol_graph/ext_node.rb, line 131 def to_sourcekit(module_name, ext_module_name) hash = super symbol.add_to_sourcekit(hash) end