createScope static method

Scope createScope(
  1. List<Module> modules,
  2. String scopeId,
  3. String scopeName
)

Implementation

static Scope createScope(final List<Module> modules, final String scopeId, final String scopeName) {
  var scope = _resolveScope(scopeId);
  if (scope != null) throw ScopeAlreadyExistsException(scopeId);
  scope = Scope(modules, scopeId, scopeName, ScopeResolver._closeScope);
  _scopeMap[scopeId] = scope;
  return scope;
}