Method: TypeProf::Core::Vertex#initialize
- Defined in:
- lib/typeprof/core/graph/vertex.rb
#initialize(origin) ⇒ Vertex
Returns a new instance of Vertex.
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
# File 'lib/typeprof/core/graph/vertex.rb', line 125 def initialize(origin) # Note that origin is just for debug. # When an AST node is reused, the value of the origin will be invalid. case origin when AST::Node when RBS::AST::Declarations::Base when ValueEntity when ActualArguments when Array when Symbol else raise "unknown class: #{ origin.class }" end @next_vtxs = Set[] super({}) end |