@@ -93,7 +93,7 @@ editing `composer.json` dependencies.
9393
9494Background-parse every PHP file in the project. Uses Composer data to
9595guide file discovery when available, falls back to scanning all PHP
96- files in the workspace when it is not. Populates the ast_map ,
96+ files in the workspace when it is not. Populates the uri_classes_index ,
9797symbol_maps, and all derived indices. Enables workspace symbols, fast
9898find-references without on-demand scanning, and rich hover on
9999completion items. Memory usage grows proportionally to project size.
@@ -157,7 +157,7 @@ join before the function returns). The thread count is capped at
157157cores). Batches of 2 or fewer files skip threading overhead.
158158
159159Transient entry eviction after GTI and find references has been
160- removed. Parsed files stay cached in ` ast_map ` , ` symbol_maps ` ,
160+ removed. Parsed files stay cached in ` uri_classes_index ` , ` symbol_maps ` ,
161161` use_map ` , and ` namespace_map ` so that subsequent operations benefit
162162from the work already done. This trades a small amount of memory for
163163faster repeat queries and simpler code.
@@ -235,7 +235,7 @@ user scrolls.
235235### Approach: "what's already discovered"
236236
237237Use ` completionItem/resolve ` to populate ` detail ` and
238- ` documentation ` fields. If the class is already in the ast_map (parsed
238+ ` documentation ` fields. If the class is already in the uri_classes_index (parsed
239239during a prior resolution), return the full signature and docblock.
240240If not, return just the item label with no extra detail.
241241
@@ -282,7 +282,7 @@ Full mode is not a separate discovery system. It works exactly like
282282 name completion and O(1) file lookup.
2832832 . ** Second pass:** Iterate every file path in the now-populated
284284 in-memory classmap and call ` update_ast ` on each one at Low
285- priority. This populates ast_map , symbol_maps, class_index ,
285+ priority. This populates uri_classes_index , symbol_maps, fqn_uri_index ,
286286 global_functions, and global_defines.
287287
288288No new file discovery logic is needed. The classmap from the first
@@ -329,14 +329,14 @@ sizes over time. The aim is to stay under 512 MB for a full project.
329329
330330The performance prerequisites above (P1 ` Arc<ClassInfo> ` ,
331331` Arc<String> ` , ` Arc<SymbolMap> ` ) directly reduce memory usage by
332- sharing data across the ast_map , caches, and snapshot copies instead
332+ sharing data across the uri_classes_index , caches, and snapshot copies instead
333333of deep-cloning each. These should be measured before and after to
334334validate the 512 MB target.
335335
336336### Workspace symbols
337337
338338With the full index populated, ` workspace/symbol ` becomes a simple
339- filter over the ast_map and global_functions maps. No additional
339+ filter over the uri_classes_index and global_functions maps. No additional
340340infrastructure needed.
341341
342342In other modes, workspace symbols still works but only returns results
@@ -370,7 +370,7 @@ three areas:
3703703 . ** Go to Implementation and Find References.** These report
371371 begin/end only. The underlying scans (` find_implementors ` ,
372372 ` find_member_references ` , ` find_class_references ` ) iterate over
373- classmap files, ast_map entries, and PSR-4 directories, all of
373+ classmap files, uri_classes_index entries, and PSR-4 directories, all of
374374 which have known or discoverable totals.
375375
376376### Design
@@ -498,10 +498,10 @@ better.
498498** Impact: Medium · Effort: Medium**
499499
500500The current lazy-loading design provides an implicit recency signal:
501- classes in ` ast_map ` were loaded because the developer interacted with
501+ classes in ` uri_classes_index ` were loaded because the developer interacted with
502502their file during this session (hovered, navigated, completed). Source
503503tiers 0 (use-imported) and 1 (same-namespace) already capture this
504- for the current file's neighborhood. The ` class_index ` source captures
504+ for the current file's neighborhood. The ` fqn_uri_index ` source captures
505505cross-file interactions (go-to-definition, hover, or completion that
506506triggered a load).
507507
0 commit comments