class TypeProf::Core::ValueEntity
Attributes
Public Class Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/value_entity.rb, line 3 def initialize @decls = Set[] @defs = Set[] @read_boxes = Set[] @vtx = Vertex.new(self) end
Public Instance Methods
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/value_entity.rb, line 12 def add_decl(decl) @decls << decl end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/value_entity.rb, line 20 def add_def(def_) @defs << def_ end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/value_entity.rb, line 28 def exist? !@decls.empty? || !@defs.empty? end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/value_entity.rb, line 16 def remove_decl(decl) @decls.delete(decl) || raise end
Source
# File bundled-src/typeprof-0.31.1/lib/typeprof/core/env/value_entity.rb, line 24 def remove_def(def_) @defs.delete(def_) || raise end