findScopeOfLevel method

Scope findScopeOfLevel(
  1. DartScope level
)

Implementation

Scope findScopeOfLevel(DartScope level) {
  return _thisAndParents
      .firstWhere((scope) => scope.scope.isSuperScope(level));
}