Sha256: 93dc004ee0fcc0c11af77843260c498d52331d7f0921f609c6f113ef84291919
Contents?: true
Size: 530 Bytes
Versions: 2
Compression:
Stored size: 530 Bytes
Contents
module TypeProf::Core class ValueEntity def initialize @decls = Set[] @defs = Set[] @read_boxes = Set[] @vtx = Vertex.new(self) end attr_reader :decls, :defs, :read_boxes, :vtx def add_decl(decl) @decls << decl end def remove_decl(decl) @decls.delete(decl) || raise end def add_def(def_) @defs << def_ end def remove_def(def_) @defs.delete(def_) || raise end def exist? !@decls.empty? || !@defs.empty? end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
typeprof-0.30.1 | lib/typeprof/core/env/value_entity.rb |
typeprof-0.30.0 | lib/typeprof/core/env/value_entity.rb |