The key reason for using this rather than a list
is that this also cleans up
when functions are removed from files.
DefinitionCache
An object of class R6ClassGenerator
of length 24.
get(funct)
: get the location
of a definition, or NULL
if it is not found
get_functs_for_uri(uri)
: get the location
s of all the definitions in uri
filter(pattern)
: get the location
s of all the definitions matching pattern
update(uri, ranges)
: create locations
of functions in uri
from ranges
, and
remove functions no longer in uri