@@ -120,7 +120,7 @@ const PathItemsMaps = Dict{String, Vector{ToplevelItem}}
120120"""
121121 Atom.SYMBOLSCACHE
122122
123- "module" (`String`) ⟶ "path" (`String`) ⟶ "symbols" (`Vector{ToplevelItem}`) map
123+ "module" (`String`) ⟶ "path" (`String`) ⟶ "symbols" (`Vector{ToplevelItem}`) map.
124124
125125!!! note
126126 "module" should be canonical, i.e.: should be identical to names that are
@@ -146,26 +146,24 @@ function toplevelgotoitems(word, mod, path, text)
146146 return ret
147147end
148148
149- # entry method
149+ # entry methods
150150function collecttoplevelitems (mod:: Module , path:: String , text:: String )
151151 pathitemsmaps = PathItemsMaps ()
152152 return if mod == Main || isuntitled (path)
153153 # for `Main` module and unsaved editors, always use CSTPraser-based approach
154154 # with a given buffer text, and don't check module validity
155155 _collecttoplevelitems! (nothing , path, text, pathitemsmaps)
156156 else
157- _collecttoplevelitems ! (mod, pathitemsmaps)
157+ collecttoplevelitems ! (mod, pathitemsmaps)
158158 end
159159end
160-
161- # entry method when called from docpane/workspace
162- function collecttoplevelitems (mod:: Module , path:: Nothing , text:: String )
160+ function collecttoplevelitems (mod:: Module , path:: Nothing , text:: String ) # when called from docpane/workspace
163161 pathitemsmaps = PathItemsMaps ()
164- _collecttoplevelitems ! (mod, pathitemsmaps)
162+ collecttoplevelitems ! (mod, pathitemsmaps)
165163end
166164
167165# sub entry method
168- function _collecttoplevelitems ! (mod:: Module , pathitemsmaps:: PathItemsMaps )
166+ function collecttoplevelitems ! (mod:: Module , pathitemsmaps:: PathItemsMaps )
169167 entrypath, paths = modulefiles (mod)
170168 return if entrypath != = nothing # Revise-like approach
171169 _collecttoplevelitems! (stripdotprefixes (string (mod)), entrypath, paths, pathitemsmaps)
0 commit comments