annotateAST function

ScopeArea annotateAST(
  1. Program ast
)

Implementation

ScopeArea annotateAST(Program ast) {
  setParentPointers(ast);
  final env = new EnvironmentBuilder()..build(ast);
  new Resolver()..resolve(ast);
  return env.scopeArea;
}