scope<T> method

void scope<T>(
  1. dynamic scopeSet(
    1. ScopeDSL
    )
)

Implementation

void scope<T>(Function(ScopeDSL) scopeSet) {
  Qualifier qualifier = TypeQualifier(T);
  ScopeDSL scopeDSL = ScopeDSL(qualifier, definitions);
  scopeSet(scopeDSL);
  scopes.add(qualifier);
}