public ImplicitNullabilityProvider(
     ImplicitNullabilityConfigurationEvaluator configurationEvaluator,
     GeneratedCodeProvider generatedCodeProvider,
     CodeAnnotationAttributesChecker codeAnnotationAttributesChecker
     )
 {
     _configurationEvaluator          = configurationEvaluator;
     _generatedCodeProvider           = generatedCodeProvider;
     _codeAnnotationAttributesChecker = codeAnnotationAttributesChecker;
 }
Exemplo n.º 2
0
        public ImplicitNullabilityProblemAnalyzer(
            CodeAnnotationAttributesChecker annotationAttributesChecker,
            CodeAnnotationsCache codeAnnotationsCache,
            ImplicitNullabilityProvider implicitNullabilityProvider)
        {
            _annotationAttributesChecker      = annotationAttributesChecker;
            _nullnessProvider                 = codeAnnotationsCache.GetProvider <NullnessProvider>();
            _containerElementNullnessProvider = codeAnnotationsCache.GetProvider <ContainerElementNullnessProvider>();
            _implicitNullabilityProvider      = implicitNullabilityProvider;

            _incorrectNullableAttributeUsageAnalyzer = new IncorrectNullableAttributeUsageAnalyzer(codeAnnotationsCache);
        }