Example #1
0
 public MethodReturnValueAnalyzer(SymbolAnalysisContext context,
                                  [NotNull] IExternalAnnotationsResolver externalAnnotations,
                                  [NotNull] GeneratedCodeDocumentCache generatedCodeCache, [NotNull] FrameworkTypeCache typeCache,
                                  bool appliesToItem)
     : base(context, externalAnnotations, generatedCodeCache, typeCache, appliesToItem)
 {
 }
        public SymbolAnalyzerFactory([NotNull] IExternalAnnotationsResolver externalAnnotations,
            [NotNull] GeneratedCodeDocumentCache generatedCodeCache, [NotNull] FrameworkTypeCache typeCache,
            bool appliesToItem)
        {
            Guard.NotNull(externalAnnotations, nameof(externalAnnotations));
            Guard.NotNull(generatedCodeCache, nameof(generatedCodeCache));
            Guard.NotNull(typeCache, nameof(typeCache));

            this.externalAnnotations = externalAnnotations;
            this.generatedCodeCache = generatedCodeCache;
            this.typeCache = typeCache;
            this.appliesToItem = appliesToItem;
        }
Example #3
0
        public SymbolAnalyzerFactory([NotNull] IExternalAnnotationsResolver externalAnnotations,
                                     [NotNull] GeneratedCodeDocumentCache generatedCodeCache, [NotNull] FrameworkTypeCache typeCache,
                                     bool appliesToItem)
        {
            Guard.NotNull(externalAnnotations, nameof(externalAnnotations));
            Guard.NotNull(generatedCodeCache, nameof(generatedCodeCache));
            Guard.NotNull(typeCache, nameof(typeCache));

            this.externalAnnotations = externalAnnotations;
            this.generatedCodeCache  = generatedCodeCache;
            this.typeCache           = typeCache;
            this.appliesToItem       = appliesToItem;
        }
Example #4
0
        protected BaseSymbolAnalyzer(SymbolAnalysisContext context,
                                     [NotNull] IExternalAnnotationsResolver externalAnnotations,
                                     [NotNull] GeneratedCodeDocumentCache generatedCodeCache, [NotNull] FrameworkTypeCache typeCache,
                                     bool appliesToItem)
        {
            Guard.NotNull(externalAnnotations, nameof(externalAnnotations));
            Guard.NotNull(generatedCodeCache, nameof(generatedCodeCache));
            Guard.NotNull(typeCache, nameof(typeCache));

            this.context             = context;
            this.externalAnnotations = externalAnnotations;
            this.generatedCodeCache  = generatedCodeCache;
            this.typeCache           = typeCache;
            AppliesToItem            = appliesToItem;

            Symbol = (TSymbol)context.Symbol;
        }
Example #5
0
        public AnalysisScope([NotNull] IExternalAnnotationsResolver externalAnnotations,
                             [NotNull] GeneratedCodeDocumentCache generatedCodeCache, [NotNull] FrameworkTypeCache typeCache,
                             [NotNull] AnalyzerSettings settings, [NotNull] DiagnosticDescriptor disableReportOnNullableValueTypesRule,
                             bool appliesToItem)
        {
            Guard.NotNull(externalAnnotations, nameof(externalAnnotations));
            Guard.NotNull(generatedCodeCache, nameof(generatedCodeCache));
            Guard.NotNull(typeCache, nameof(typeCache));
            Guard.NotNull(settings, nameof(settings));
            Guard.NotNull(disableReportOnNullableValueTypesRule, nameof(disableReportOnNullableValueTypesRule));

            ExternalAnnotations = externalAnnotations;
            GeneratedCodeCache  = generatedCodeCache;
            TypeCache           = typeCache;
            Settings            = settings;
            DisableReportOnNullableValueTypesRule = disableReportOnNullableValueTypesRule;
            AppliesToItem = appliesToItem;
        }