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

Method collect_fast_diagnostics

src/diagnostics/mod.rs:203–212  ·  view source on GitHub ↗

Collect Phase 1 (fast) diagnostics: syntax errors, unused imports. These are cheap — no type resolution.

(
        &self,
        uri_str: &str,
        content: &str,
        out: &mut Vec<Diagnostic>,
    )

Source from the content-addressed store, hash-verified

201 /// Collect Phase 1 (fast) diagnostics: syntax errors, unused
202 /// imports. These are cheap — no type resolution.
203 pub(crate) fn collect_fast_diagnostics(
204 &self,
205 uri_str: &str,
206 content: &str,
207 out: &mut Vec<Diagnostic>,
208 ) {
209 self.collect_syntax_error_diagnostics(uri_str, content, out);
210 self.collect_unused_import_diagnostics(uri_str, content, out);
211 self.collect_unused_variable_diagnostics(uri_str, content, out);
212 }
213
214 /// Collect Phase 2 (slow) diagnostics: unknown class/member/function,
215 /// argument count, implementation errors, deprecated usage. These

Callers 2

runFunction · 0.80

Tested by

no test coverage detected