Merged
Conversation
Co-authored-by: Copilot <copilot@github.com>
There was a problem hiding this comment.
Pull request overview
Updates SourceGen.Ioc to expose container resolvers via a static (interface-required) API, moving resolver dictionary construction to static initialization and adding analyzer protection against circular module imports.
Changes:
- Changed
IIocContainer<TContainer>.Resolversto astatic abstractmember and updated generated containers accordingly. - Updated container generation to build
_serviceResolversas aprivate static readonly FrozenDictionary(and removed per-instance resolver copying). - Added analyzer
SGIOC025(plus tests/docs/spec updates) to detect circular module import cycles that could deadlock type initialization.
Reviewed changes
Copilot reviewed 116 out of 119 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Ioc/src/SourceGen.Ioc/IIocContainer.cs | Makes Resolvers a static abstract contract to support static resolver access. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/GenerateContainerOutput.cs | Emits static Resolvers and static _serviceResolvers generation; removes instance resolver field/assignments. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Analyzer/ContainerAnalyzer.cs | Adds SGIOC025 diagnostic and cycle-detection logic for module imports. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/AnalyzerReleases.Unshipped.md | Documents new SGIOC025 analyzer rule release entry. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Analyzer/Spec/SPEC.spec.md | Adds analyzer spec section for SGIOC025 behavior and message format. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.Basic.spec.md | Updates generator spec to reflect static resolver storage and static Resolvers. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.ImportModule.spec.md | Updates module import spec to reflect static resolver dictionary built from imported module resolvers. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.Options.spec.md | Updates options spec for static resolver dictionary initialization. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.Performance.spec.md | Updates performance spec to show static resolver dictionary rather than constructor-built. |
| src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.ThreadSafety.spec.md | Removes now-obsolete parent _serviceResolvers copy from spec snippet. |
| docs/Ioc/12_Container.md | Documents SGIOC025 warning and static _serviceResolvers note; updates diagnostic table. |
| src/Ioc/test/SourceGen.Ioc.Test/Helpers/Constants.cs | Adds SGIOC025 constant for analyzer tests/categories. |
| src/Ioc/test/SourceGen.Ioc.Test/Analyzer/SGIOC025Tests.cs | Adds analyzer tests validating circular import detection (direct/transitive/non-generic/no-cycle). |
| src/Ioc/test/SourceGen.Ioc.Test/RegisterSourceGeneratorSnapshot/ImportModuleTests.ImportModule_WithOpenGenericRegistration_GeneratesClosedTypes.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/BasicContainerTests.SimpleContainer_GeneratesBasicContainer.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/BasicContainerTests.Container_WithNoServices_GeneratesEmptyContainer.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/BasicContainerTests.Container_WithMultipleLifetimes_GeneratesCorrectContainer.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/BasicContainerTests.Container_WithDependencyInjection_GeneratesConstructorInjection.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/BasicContainerTests.Container_InNestedNamespace_GeneratesCorrectNamespace.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/BasicContainerTests.Container_InGlobalNamespace_GeneratesWithoutNamespace.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/CollectionResolutionContainerTests.Container_WithCollectionResolution_GeneratesEnumerableService.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/CollectionResolutionContainerTests.Container_WithCollectionResolution_GeneratesReadOnlyCollectionAndArrayServices.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/CollectionResolutionContainerTests.Container_WithMultipleInstanceRegistrations_GeneratesEnumerableForSameType.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ContainerOptionsTests.Container_WithoutDIPackage_DoesNotGenerateIServiceProviderFactory.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ContainerOptionsTests.Container_WithMultipleInterfaceRegistration_GeneratesAllResolutions.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ContainerOptionsTests.Container_WithIntegrateServiceProviderFalse_DoesNotGenerateServiceProviderFactory.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ContainerOptionsTests.Container_WithIncludeTags_OnlyIncludesMatchingTaggedServices.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ContainerOptionsTests.Container_WithExplicitOnlyMode_OnlyIncludesExplicitRegistrations.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ContainerOptionsTests.Container_WithExplicitOnlyMode_GenericAttributeWorks.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ContainerOptionsTests.Container_WithExplicitOnlyAndIncludeTags_ExplicitOnlyTakesPrecedence.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/DecoratorContainerTests.Container_WithDecorators_GeneratesDecoratedResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/DecoratorContainerTests.Container_WithDecorators_HavingClosedGenericDependency_GeneratesDirectResolverCalls.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/DecoratorContainerTests.Container_WithDecoratorInjectionMembers_GeneratesPropertyAndMethodInjection.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/DisposableServiceTests.Container_WithTransientDisposable_GeneratesDisposableTracking.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/DisposableServiceTests.Container_WithAsyncDisposable_GeneratesAsyncDisposableTracking.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/EagerResolveOptionsTests.Container_WithTransientServices_NeverEager.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/EagerResolveOptionsTests.Container_WithInstanceRegistration_AlwaysEager.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/EagerResolveOptionsTests.Container_WithEagerSingletonAndDependencies_ResolvesDependenciesFirst.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/EagerResolveOptionsTests.Container_WithEagerResolveOptionsSingletonAndScoped_EagerBoth.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/EagerResolveOptionsTests.Container_WithEagerResolveOptionsScoped_EagerScoped.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/EagerResolveOptionsTests.Container_WithEagerResolveOptionsNone_LazySingletons.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/EagerResolveOptionsTests.Container_WithDefaultEagerResolveOptions_EagerSingletons.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/FactoryAndInstanceContainerTests.Container_WithInstanceRegistration_UsesStaticInstance.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/FactoryAndInstanceContainerTests.Container_WithFactoryRegistration_UsesFactoryMethod.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericFactoryContainerTests.Container_WithGenericFactory_GeneratesCorrectFactoryCall.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericFactoryContainerTests.Container_WithGenericFactory_MultipleDiscoveries_GeneratesMultipleFactoryCalls.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericFactoryContainerTests.Container_WithGenericFactory_MultipleTypeParameters_GeneratesCorrectFactoryCall.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericFactoryContainerTests.Container_WithGenericFactory_ReversedTypeParameterMapping_GeneratesCorrectOrder.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericFactoryContainerTests.Container_WithGenericFactory_RegisterImplWin.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericFactoryContainerTests.Container_WithGenericFactory_AlsoSpecifiedImpls.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericFactoryContainerTests.Container_WithGenericFactory_WithServiceProvider_GeneratesProviderParameter.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericServiceContainerTests.Container_WithOpenGenerics_NoIntegrateServiceProvider_FallbacksToProviderForGenericTypes.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericServiceContainerTests.Container_WithGenericService_GeneratesGenericResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/GenericServiceContainerTests.Container_WithOpenGenerics_UseSwitchStatement_FallbacksToProviderForGenericTypes.verified.txt | Snapshot updated for static Resolvers (switch mode). |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/InjectionTests.Container_WithPropertyInjection_GeneratesPropertyAssignment.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/InjectionTests.Container_WithMethodInjection_GeneratesMethodCall.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/InjectionTests.Container_WithFieldInjection_GeneratesFieldAssignment.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/InjectionTests.Container_FieldInjectFeatureDisabled_IgnoresFieldInjection.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithKeyedServices_GeneratesKeyedResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithKeyedServices_UseSwitchStatement.verified.txt | Snapshot updated for static Resolvers (switch mode). |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithServiceKeyAttribute_InjectsRegistrationKey.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithServiceKeyAttribute_StringKey_InjectsTypedKey.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithServiceKeyAttribute_NullableKey_InjectsNullForNonKeyedService.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithServiceKeyAttribute_MethodInjection_InjectsKey.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithServiceKeyAttribute_MethodInjection_WithOtherParameters_InjectsCorrectly.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithServiceKeyAttribute_Factory_InjectsKey.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/KeyedServiceTests.Container_WithServiceKeyAttribute_Factory_WithDependencies_InjectsCorrectly.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ModuleImportContainerTests.Container_WithImportedModule_CombinesServices.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers built from imported modules. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ModuleImportContainerTests.Container_WithImportedModule_UseSwitchStatementIgnored_UsesFrozenDictionary.verified.txt | Snapshot updated for imported-module resolver behavior with static resolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ModuleImportContainerTests.Container_WithMultipleImportedModules_CombinesAllServices.verified.txt | Snapshot updated for static _serviceResolvers combining multiple modules. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ModuleImportContainerTests.Container_WithNestedModuleImports_ThreeLevelHierarchy.verified.txt | Snapshot updated for static _serviceResolvers built from nested module resolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialProperty_ResolvesRegisteredService.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialProperty_WithKeyedService_ResolvesWithKey.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialMethod_ResolvesRegisteredService.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialMethod_WithKeyedService_ResolvesWithKey.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialMethod_NullableReturnType_ResolvesOptionally.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialMethod_NoFallback_UnregisteredService_ThrowsExpression.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialMethod_NamingConflict_RenamesInternalResolver.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/PartialAccessorTests.PartialAccessor_MixedMethodsAndProperties.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithTransientServices_DoesNotGenerateSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithDefaultStrategy_GeneratesSemaphoreSlimSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategyNone_GeneratesNoSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategyNone_AndDecorators_GeneratesNoSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategyLock_GeneratesLockSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategyLock_AndPropertyInjection_GeneratesLockSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategySpinLock_GeneratesSpinLockSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategySemaphoreSlim_GeneratesSemaphoreSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategyCompareExchange_GeneratesCompareExchangeSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategyCompareExchange_AndDecorators_GeneratesCompareExchangeSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ThreadSafeStrategyTests.Container_WithThreadSafeStrategyScopedServices_GeneratesCorrectSynchronization.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.DictionaryDependency_GeneratesDictionaryResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.DictionaryDependency_WithKeyedServices_GeneratesKvpResolvers.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.ReadOnlyDictionaryDependency_GeneratesDictionaryResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.FuncDependency_GeneratesFuncResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.FuncDependency_WithUnmatchedInputType_IgnoresInputAndResolvesFromDi.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.FuncDependency_WithSingleInputParameter_MatchesConstructorParameterByType.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.FuncDependency_WithMultipleInputParameters_UsesFirstUnusedTypeMatches.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.LazyDependency_GeneratesLazyResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.NestedFuncLazy_GeneratesNestedResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.NestedLazyFunc_GeneratesNestedResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.NestedLazyEnumerable_GeneratesNestedResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.NestedEnumerableLazy_GeneratesNestedResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.NestedEnumerableFunc_GeneratesNestedResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.KeyValuePairDependency_GeneratesKvpResolution.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.KeyValuePairDependency_WithKeyedServices_GeneratesKvpResolvers.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.KeyValuePairDependency_WithMixedKeyTypes_OnlyGeneratesMatchingKvpResolvers.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/WrapperTypeDependencyTests.CollectionWrapperKind_HasCorrectWrapperKindOnCollectionTypes.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithRegisteredComponent_GeneratesComponentWithPropertyInjection.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithIControllerActivator_GeneratesControllerActivatorImplementation.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithIComponentActivator_GeneratesComponentActivatorImplementation.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithIComponentPropertyActivator_GeneratesPropertyActivatorImplementation.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithIComponentPropertyActivatorOnly_GeneratesReflectionFallback.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithIComponentPropertyActivator_SwitchMode_GeneratesArrayExistsCheck.verified.txt | Snapshot updated for static Resolvers (switch mode). |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithBothActivators_GeneratesBothImplementations.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
| src/Ioc/test/SourceGen.Ioc.Test/ContainerSourceGeneratorSnapshot/ActivatorContainerTests.Container_WithAllActivators_GeneratesAllImplementations.verified.txt | Snapshot updated for static Resolvers and static _serviceResolvers. |
src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.Basic.spec.md
Outdated
Show resolved
Hide resolved
src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.ImportModule.spec.md
Outdated
Show resolved
Hide resolved
src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/GenerateContainerOutput.cs
Outdated
Show resolved
Hide resolved
src/Ioc/src/SourceGen.Ioc.SourceGenerator/Analyzer/ContainerAnalyzer.cs
Outdated
Show resolved
Hide resolved
src/Ioc/src/SourceGen.Ioc.SourceGenerator/Analyzer/ContainerAnalyzer.cs
Outdated
Show resolved
Hide resolved
src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.Performance.spec.md
Show resolved
Hide resolved
src/Ioc/src/SourceGen.Ioc.SourceGenerator/Generator/Spec/Container.Options.spec.md
Show resolved
Hide resolved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Make iioccontainer resolvers static.
Related Issue
Resolve #8
Type of Change
Checklist
Testing
All test pass