Skip to main content

analyze_with_signatures

Function analyze_with_signatures 

Source
pub fn analyze_with_signatures(
    program_root: &SyntaxNode,
    signature_roots: &[SyntaxNode],
) -> AnalysisResult
Expand description

Analyze the program with the root scope pre-seeded from signature files (e.g. stdlib constants and functions). This allows references to global constants and built-in functions to resolve without errors. Also seeds built-in type/class names (e.g. Class, bool) so that common LeekScript code validates.