findProgramContext method

Context findProgramContext(
  1. Node node
)

Implementation

Context findProgramContext(Node node) {
  Scope scope = enclosingScope(node);
  while (scope is! Program) {
    scope = enclosingScope(scope.parent!);
  }
  return getContextForScope(scope);
}