getProtocolScopeInternal method

ProtocolScopeImpl getProtocolScopeInternal(
  1. ProtocolID protocol
)

Implementation

ProtocolScopeImpl getProtocolScopeInternal(ProtocolID protocol) {
  return _protocolScopes.putIfAbsent(protocol, () {
    _logger.fine('Creating new protocol scope: $protocol');
    // Use ProtocolScopeImpl constructor
    final scope = ProtocolScopeImpl(
      _limiter.getProtocolLimits(protocol),
      protocol, // Pass the protocol ID directly
      edges: [_systemScope],
    );
    scope.incRef();
    return scope;
  });
}