protected AbstractSubstituteAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { _substituteProxyAnalysis = new Lazy <AbstractSubstituteProxyAnalysis <TInvocationExpressionSyntax, TExpressionSyntax> >(GetSubstituteProxyAnalysis); _substituteConstructorAnalysis = new Lazy <AbstractSubstituteConstructorAnalysis <TInvocationExpressionSyntax, TArgumentSyntax> >(GetSubstituteConstructorAnalysis); _substituteConstructorMatcher = new Lazy <AbstractSubstituteConstructorMatcher>(GetSubstituteConstructorMatcher); }
protected AbstractNonSubstitutableSetupAnalyzer( IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, INonSubstitutableMemberAnalysis nonSubstitutableMemberAnalysis) : base(diagnosticDescriptorsProvider) { _nonSubstitutableMemberAnalysis = nonSubstitutableMemberAnalysis; _internalSetupSpecificationDescriptor = diagnosticDescriptorsProvider.InternalSetupSpecification; }
protected AbstractNonSubstitutableMemberReceivedAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { _analyzeInvocationAction = AnalyzeInvocation; SupportedDiagnostics = ImmutableArray.Create( DiagnosticDescriptorsProvider.NonVirtualReceivedSetupSpecification, DiagnosticDescriptorsProvider.InternalSetupSpecification); }
protected AbstractNonSubstitutableMemberArgumentMatcherAnalyzer( INonSubstitutableMemberAnalysis nonSubstitutableMemberAnalysis, IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { _nonSubstitutableMemberAnalysis = nonSubstitutableMemberAnalysis; _analyzeInvocationAction = AnalyzeInvocation; SupportedDiagnostics = ImmutableArray.Create(DiagnosticDescriptorsProvider.NonSubstitutableMemberArgumentMatcherUsage); }
protected AbstractConflictingArgumentAssignmentsAnalyzer( IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, ICallInfoFinder <TInvocationExpressionSyntax, TIndexerExpressionSyntax> callInfoFinder) : base(diagnosticDescriptorsProvider) { _callInfoFinder = callInfoFinder; _analyzeInvocationAction = AnalyzeInvocation; SupportedDiagnostics = ImmutableArray.Create(DiagnosticDescriptorsProvider.ConflictingArgumentAssignments); }
protected AbstractNonSubstitutableMemberAnalyzer( IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, ISubstitutionNodeFinder <TInvocationExpressionSyntax> substitutionNodeFinder) : base(diagnosticDescriptorsProvider) { _analyzeInvocationAction = AnalyzeInvocation; _substitutionNodeFinder = substitutionNodeFinder; SupportedDiagnostics = ImmutableArray.Create(DiagnosticDescriptorsProvider.NonVirtualSetupSpecification, DiagnosticDescriptorsProvider.InternalSetupSpecification); }
protected AbstractCallInfoAnalyzer( IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, ICallInfoFinder <TInvocationExpressionSyntax, TIndexerExpressionSyntax> callInfoFinder, ISubstitutionNodeFinder <TInvocationExpressionSyntax> substitutionNodeFinder) : base(diagnosticDescriptorsProvider) { _callInfoFinder = callInfoFinder; _substitutionNodeFinder = substitutionNodeFinder; }
protected AbstractReceivedInReceivedInOrderAnalyzer( ISubstitutionNodeFinder <TInvocationExpressionSyntax> substitutionNodeFinder, IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { _substitutionNodeFinder = substitutionNodeFinder; _analyzeInvocationAction = AnalyzeInvocation; SupportedDiagnostics = ImmutableArray.Create(diagnosticDescriptorsProvider.ReceivedUsedInReceivedInOrder); }
protected AbstractReEntrantSetupAnalyzer( IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, IReEntrantCallFinder reEntrantCallFinder) : base(diagnosticDescriptorsProvider) { _reEntrantCallFinder = reEntrantCallFinder; _analyzeInvocationAction = AnalyzeInvocation; SupportedDiagnostics = ImmutableArray.Create(DiagnosticDescriptorsProvider.ReEntrantSubstituteCall); }
protected AbstractCallInfoAnalyzer( IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, ICallInfoFinder <TInvocationExpressionSyntax, TIndexerExpressionSyntax> callInfoFinder, ISubstitutionNodeFinder <TInvocationExpressionSyntax> substitutionNodeFinder) : base(diagnosticDescriptorsProvider) { _callInfoFinder = callInfoFinder; _substitutionNodeFinder = substitutionNodeFinder; _analyzeInvocationAction = AnalyzeInvocation; SupportedDiagnostics = ImmutableArray.Create( DiagnosticDescriptorsProvider.CallInfoArgumentOutOfRange, DiagnosticDescriptorsProvider.CallInfoCouldNotConvertParameterAtPosition, DiagnosticDescriptorsProvider.CallInfoCouldNotFindArgumentToThisCall, DiagnosticDescriptorsProvider.CallInfoMoreThanOneArgumentOfType, DiagnosticDescriptorsProvider.CallInfoArgumentSetWithIncompatibleValue, DiagnosticDescriptorsProvider.CallInfoArgumentIsNotOutOrRef); }
protected AbstractSubstituteAnalyzer( IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, ISubstituteProxyAnalysis <TInvocationExpressionSyntax, TExpressionSyntax> substituteProxyAnalysis, ISubstituteConstructorAnalysis <TInvocationExpressionSyntax> substituteConstructorAnalysis, ISubstituteConstructorMatcher substituteConstructorMatcher) : base(diagnosticDescriptorsProvider) { _analyzeInvocationAction = AnalyzeInvocation; _substituteProxyAnalysis = substituteProxyAnalysis; _substituteConstructorAnalysis = substituteConstructorAnalysis; _substituteConstructorMatcher = substituteConstructorMatcher; SupportedDiagnostics = ImmutableArray.Create( DiagnosticDescriptorsProvider.PartialSubstituteForUnsupportedType, DiagnosticDescriptorsProvider.SubstituteForWithoutAccessibleConstructor, DiagnosticDescriptorsProvider.SubstituteForConstructorParametersMismatch, DiagnosticDescriptorsProvider.SubstituteForInternalMember, DiagnosticDescriptorsProvider.SubstituteConstructorMismatch, DiagnosticDescriptorsProvider.SubstituteMultipleClasses, DiagnosticDescriptorsProvider.SubstituteConstructorArgumentsForInterface, DiagnosticDescriptorsProvider.SubstituteConstructorArgumentsForDelegate); }
protected AbstractNonSubstitutableMemberWhenAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, ISubstitutionNodeFinder <TInvocationExpressionSyntax> substitutionNodeFinder) : base(diagnosticDescriptorsProvider) { _substitutionNodeFinder = substitutionNodeFinder; }
protected AbstractUnusedReceivedAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { }
protected AbstractReEntrantSetupAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider, IReEntrantCallFinder reEntrantCallFinder) : base(diagnosticDescriptorsProvider) { _reEntrantCallFinder = reEntrantCallFinder; }
protected AbstractUnusedReceivedAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { _analyzeInvocationAction = AnalyzeInvocation; SupportedDiagnostics = ImmutableArray.Create(DiagnosticDescriptorsProvider.UnusedReceived); }
protected AbstractDiagnosticAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) { DiagnosticDescriptorsProvider = diagnosticDescriptorsProvider; }
protected AbstractNonSubstitutableMemberReceivedAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { }
protected AbstractReEntrantSetupAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { _reEntrantCallFinderProxy = new Lazy <AbstractReEntrantCallFinder>(GetReEntrantCallFinder); }
protected AbstractNonVirtualWhenAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { }
protected AbstractNonVirtualSetupReceivedAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { }
protected AbstractCallInfoAnalyzer(IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider) : base(diagnosticDescriptorsProvider) { _callInfoFinderProxy = new Lazy <AbstractCallInfoFinder <TInvocationExpressionSyntax, TIndexerExpressionSyntax> >(GetCallInfoFinder); }