Interface StaticAnalysis

The result of calling analyze() or analyzeSync().

interface StaticAnalysis {
    globals: Variables;
    locals: Variables;
    variables: Variables;
}

Properties

globals: Variables

Variables that are not in scope. These could be a "global" variables that are expected to be provided by the application developer, or possible mistakes from the template author.

If a variable is referenced before and after assignment, you should expect that variable to be included in globals, variables and locals, each with a different location.

locals: Variables

Template variables that are added to the template local scope using tags like assign, capture or increment.

variables: Variables

All variables, whether they are in scope or not. Including references to names such as forloop from the for tag.