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