Exemple #1
0
 protected AbstractConflictingArgumentAssignmentsAnalyzer(
     IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider,
     ICallInfoFinder <TInvocationExpressionSyntax, TIndexerExpressionSyntax> callInfoFinder)
     : base(diagnosticDescriptorsProvider)
 {
     _callInfoFinder          = callInfoFinder;
     _analyzeInvocationAction = AnalyzeInvocation;
     SupportedDiagnostics     = ImmutableArray.Create(DiagnosticDescriptorsProvider.ConflictingArgumentAssignments);
 }
Exemple #2
0
 protected AbstractCallInfoAnalyzer(
     IDiagnosticDescriptorsProvider diagnosticDescriptorsProvider,
     ICallInfoFinder <TInvocationExpressionSyntax, TIndexerExpressionSyntax> callInfoFinder,
     ISubstitutionNodeFinder <TInvocationExpressionSyntax> substitutionNodeFinder)
     : base(diagnosticDescriptorsProvider)
 {
     _callInfoFinder         = callInfoFinder;
     _substitutionNodeFinder = substitutionNodeFinder;
 }
Exemple #3
0
        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);
        }