MCPcopy Create free account
hub / github.com/PHPantom-dev/phpantom_lsp / parse_and_cache_content

Method parse_and_cache_content

src/resolution.rs:320–326  ·  view source on GitHub ↗

Parse PHP source text, cache the results in `uri_classes_index`/`use_map`/`namespace_map`, and return the extracted classes. This is the single canonical implementation of the "parse → cache" pipeline. All code paths that need to parse PHP content and store the results (file-based resolution, stub resolution, implementation scanning) funnel through here so the caching logic stays consistent.

(
        &self,
        content: &str,
        uri: &str,
    )

Source from the content-addressed store, hash-verified

318 /// the results (file-based resolution, stub resolution, implementation
319 /// scanning) funnel through here so the caching logic stays consistent.
320 pub(crate) fn parse_and_cache_content(
321 &self,
322 content: &str,
323 uri: &str,
324 ) -> Option<Vec<Arc<ClassInfo>>> {
325 self.parse_and_cache_content_versioned(content, uri, None)
326 }
327
328 /// Version-aware variant of [`parse_and_cache_content`].
329 ///

Callers 1

parse_and_cache_fileMethod · 0.80

Tested by

no test coverage detected