提交 fd1b466c 编写于 作者: S Srivatsn Narayanan

Merge pull request #11215 from bkoelman/typo

Fixed typo in field name
......@@ -36,7 +36,7 @@ internal class AnalyzerExecutor
private readonly Action<Diagnostic, DiagnosticAnalyzer, bool> _addCategorizedLocalDiagnosticOpt;
private readonly Action<Diagnostic, DiagnosticAnalyzer> _addCategorizedNonLocalDiagnosticOpt;
private readonly Action<Exception, DiagnosticAnalyzer, Diagnostic> _onAnalyzerException;
private readonly Func<Exception, bool> _analyzerExcetpionFilter;
private readonly Func<Exception, bool> _analyzerExceptionFilter;
private readonly AnalyzerManager _analyzerManager;
private readonly Func<DiagnosticAnalyzer, bool> _isCompilerAnalyzer;
private readonly Func<DiagnosticAnalyzer, object> _getAnalyzerGateOpt;
......@@ -154,7 +154,7 @@ internal class AnalyzerExecutor
_analyzerOptions = analyzerOptions;
_addNonCategorizedDiagnosticOpt = addNonCategorizedDiagnosticOpt;
_onAnalyzerException = onAnalyzerException;
_analyzerExcetpionFilter = analyzerExceptionFilter;
_analyzerExceptionFilter = analyzerExceptionFilter;
_isCompilerAnalyzer = isCompilerAnalyzer;
_analyzerManager = analyzerManager;
_shouldSkipAnalysisOnGeneratedCode = shouldSkipAnalysisOnGeneratedCode;
......@@ -175,7 +175,7 @@ public AnalyzerExecutor WithCancellationToken(CancellationToken cancellationToke
return this;
}
return new AnalyzerExecutor(_compilation, _analyzerOptions, _addNonCategorizedDiagnosticOpt, _onAnalyzerException, _analyzerExcetpionFilter,
return new AnalyzerExecutor(_compilation, _analyzerOptions, _addNonCategorizedDiagnosticOpt, _onAnalyzerException, _analyzerExceptionFilter,
_isCompilerAnalyzer, _analyzerManager, _shouldSkipAnalysisOnGeneratedCode, _shouldSuppressGeneratedCodeDiagnostic,
_getAnalyzerGateOpt, _analyzerExecutionTimeMapOpt, _addCategorizedLocalDiagnosticOpt, _addCategorizedNonLocalDiagnosticOpt, cancellationToken);
}
......@@ -1104,9 +1104,9 @@ internal bool ExceptionFilter(Exception ex)
return false;
}
if (_analyzerExcetpionFilter != null)
if (_analyzerExceptionFilter != null)
{
return _analyzerExcetpionFilter(ex);
return _analyzerExceptionFilter(ex);
}
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册