pub fn resolve(
    query: Query,
    context: Option<Context>
) -> Result<(Vec<Node>, Context)>
Expand description

Runs semantic analysis on the query, using current state.

Note that this removes function declarations from AST and saves them as current context.