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 forstmts(used for position mapping)stmts— AST of the document being checkedall— every document in the workspace as(source, stmts)pairs; include the current document so its definitions are visible