Skip to main content

analyze

Function analyze 

Source
pub fn analyze<'a>(
    source: &str,
    stmts: &[Stmt<'a, 'a>],
    all: &[(&str, &[Stmt<'a, 'a>])],
) -> Vec<Diagnostic>
Expand description

Analyse stmts against all workspace documents and return diagnostics.

  • source — the raw PHP source text for stmts (used for position mapping)
  • stmts — AST of the document being checked
  • all — every document in the workspace as (source, stmts) pairs; include the current document so its definitions are visible