getContextForScope method

Context getContextForScope(
  1. Scope scope
)

Implementation

Context getContextForScope(Scope scope) {
  // Some transient scopes may not have been registered; fall back to program.
  return contexts[scope] ?? contexts[program]!;
}