@@ -224,7 +224,7 @@ Most of Revise's magic comes down to just three internal variables:
224224- [ ` Revise.pkgdatas ` ] ( @ref ) : the central repository of parsed code, used to "diff" for changes
225225 and then "patch" the running session.
226226
227- Two "maps" are central to Revise's inner workings: ` ExprsSigs ` maps link
227+ Two "maps" are central to Revise's inner workings: ` ExprsInfos ` maps link
228228definition=>signature-types (the forward workflow), while ` CodeTracking ` (specifically,
229229its internal variable ` method_info ` ) links from a
230230method table/signature-type pair to the corresponding definition (the backward workflow).
@@ -234,7 +234,7 @@ of `sigt`; consequently, this information allows one to look up the correspondin
234234` locationinfo ` and ` def ` . (When methods move, the location information stored by CodeTracking
235235gets updated by Revise.)
236236
237- Some additional notes about Revise's ` ExprsSigs ` maps:
237+ Some additional notes about Revise's ` ExprsInfos ` maps:
238238
239239- For expressions that do not define a method, it is just ` def=>nothing `
240240- For expressions that do define a method, it is ` def=>[mt_sigt1, ...] ` .
@@ -254,10 +254,10 @@ Some additional notes about Revise's `ExprsSigs` maps:
254254 Any discrepancy with the current line numbers in the file is handled through updates to
255255 the location information stored by ` CodeTracking ` .
256256
257- ` ExprsSigs ` are organized by module and then file, so that one can map
257+ ` ExprsInfos ` are organized by module and then file, so that one can map
258258` filename ` =>` module ` =>` def ` =>` mt_sigts ` .
259259Importantly, single-file modules can be "reconstructed" from the keys of the corresponding
260- ` ExprsSigs ` (and multi-file modules from a collection of such items), since they hold
260+ ` ExprsInfos ` (and multi-file modules from a collection of such items), since they hold
261261the complete ordered set of expressions that would be ` eval ` ed to define the module.
262262
263263The global variable that holds all this information is [ ` Revise.pkgdatas ` ] ( @ref ) , organized
@@ -303,8 +303,8 @@ Items [b24a5932-55ed-11e9-2a88-e52f99e65a0d]
303303
304304julia> pkgdata = Revise.pkgdatas[id]
305305PkgData(Items [b24a5932-55ed-11e9-2a88-e52f99e65a0d]:
306- "src/Items.jl": FileInfo(Main=>ExprsSigs (<1 expressions>, <0 signatures>), Items=>ExprsSigs (<2 expressions>, <3 signatures>), )
307- "src/indents.jl": FileInfo(Items=>ExprsSigs (<2 expressions>, <2 signatures>), )
306+ "src/Items.jl": FileInfo(Main=>ExprsInfos (<1 expressions>, <0 signatures>), Items=>ExprsInfos (<2 expressions>, <3 signatures>), )
307+ "src/indents.jl": FileInfo(Items=>ExprsInfos (<2 expressions>, <2 signatures>), )
308308```
309309
310310(Your specific UUID may differ.)
@@ -325,7 +325,7 @@ package manager.
325325
326326``` julia-repl
327327julia> pkgdata.fileinfos[2]
328- FileInfo(Items=>ExprsSigs with the following expressions:
328+ FileInfo(Items=>ExprsInfos with the following expressions:
329329 :(indent(::UInt16) = begin
330330 2
331331 end)
@@ -337,7 +337,7 @@ FileInfo(Items=>ExprsSigs with the following expressions:
337337This is just a summary; to see the actual ` def=>mt_sigts ` map, do the following:
338338
339339``` julia-repl
340- julia> pkgdata.fileinfos[2].mod_exs_sigs [Items]
340+ julia> pkgdata.fileinfos[2].mod_exs_infos [Items]
341341OrderedCollections.OrderedDict{Module, OrderedCollections.OrderedDict{Revise.RelocatableExpr, Union{Nothing, Vector{CodeTracking.MethodInfoKey}}}} with 2 entries:
342342 :(indent(::UInt16) = begin… => CodeTracking.MethodInfoKey[CodeTracking.MethodInfoKey(nothing, Tuple{typeof(indent),UInt16})]
343343 :(indent(::UInt8) = begin… => CodeTracking.MethodInfoKey[CodeTracking.MethodInfoKey(nothing, Tuple{typeof(indent),UInt8})]
@@ -361,21 +361,21 @@ and other expressions that are `eval`ed in `Items`.
361361
362362When the file system notifies Revise that a file has been modified, Revise re-parses
363363the file and assigns the expressions to the appropriate modules, creating a
364- [ ` Revise.ModuleExprsSigs ` ] ( @ref ) ` mod_exs_sigs_new ` .
365- It then compares ` mod_exs_sigs_new ` against ` mod_exs_sigs_ref ` ,
364+ [ ` Revise.ModuleExprsInfos ` ] ( @ref ) ` mod_exs_infos_new ` .
365+ It then compares ` mod_exs_infos_new ` against ` mod_exs_infos_ref ` ,
366366the reference object that is synchronized to code as it was ` eval ` ed.
367367
368368The following actions are taken:
369- - if a ` def ` entry in ` mod_exs_sigs_ref ` is equal to one in ` mod_exs_sigs_new ` , the expression is "unchanged"
369+ - if a ` def ` entry in ` mod_exs_infos_ref ` is equal to one in ` mod_exs_infos_new ` , the expression is "unchanged"
370370 except possibly for line number. The ` locationinfo ` in ` CodeTracking ` is updated as needed.
371- - if a ` def ` entry in ` mod_exs_sigs_ref ` is not present in ` mod_exs_sigs_new ` , that entry is deleted and
371+ - if a ` def ` entry in ` mod_exs_infos_ref ` is not present in ` mod_exs_infos_new ` , that entry is deleted and
372372 any corresponding methods are also deleted.
373- - if a ` def ` entry in ` mod_exs_sigs_new ` is not present in ` mod_exs_sigs_ref ` , it is ` eval ` ed and then added to
374- ` mod_exs_sigs_ref ` .
373+ - if a ` def ` entry in ` mod_exs_infos_new ` is not present in ` mod_exs_infos_ref ` , it is ` eval ` ed and then added to
374+ ` mod_exs_infos_ref ` .
375375
376- Technically, a new ` mod_exs_sigs_ref ` is generated every time to ensure that the expressions are
377- ordered as in ` mod_exs_sigs_new ` ; however, conceptually this is better thought of as an updating of
378- ` mod_exs_sigs_ref ` , after which ` mod_exs_sigs_new ` is discarded.
376+ Technically, a new ` mod_exs_infos_ref ` is generated every time to ensure that the expressions are
377+ ordered as in ` mod_exs_infos_new ` ; however, conceptually this is better thought of as an updating of
378+ ` mod_exs_infos_ref ` , after which ` mod_exs_infos_new ` is discarded.
379379
380380Note that one consequence is that modifying a method causes two actions, the deletion of
381381the original followed by ` eval ` ing a new version.
0 commit comments