提交 65baddfd 编写于 作者: H Heejae Chang 提交者: GitHub

Merge pull request #14808 from heejaechang/fixdump1

add fail fast on exceptional situation
......@@ -133,6 +133,12 @@ public ImmutableArray<StateSet> CreateBuildOnlyProjectStateSet(Project project)
// we always include compiler analyzer in build only state
var compilerAnalyzer = _analyzerManager.GetCompilerDiagnosticAnalyzer(project.Language);
if (compilerAnalyzer == null)
{
// only way to get here is if MEF is corrupted.
FailFast.OnFatalException(new Exception("How can this happen?"));
}
StateSet compilerStateSet;
if (hostStateSetMap.TryGetValue(compilerAnalyzer, out compilerStateSet))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册