Skip to content
代码片段 群组 项目
提交 4ea427f2 编辑于 作者: Jason Malinowski's avatar Jason Malinowski
浏览文件

Switch a call to LanguageServices.GetService to GetRequiredService

If we're going to require it, let's at least crash with a useful
exception instead of a null ref.
上级 d3a4c9ec
无相关合并请求
......@@ -502,7 +502,7 @@ private async Task<Compilation> BuildDeclarationCompilationFromScratchAsync(
private Compilation CreateEmptyCompilation()
{
var compilationFactory = this.ProjectState.LanguageServices.GetService<ICompilationFactoryService>();
var compilationFactory = this.ProjectState.LanguageServices.GetRequiredService<ICompilationFactoryService>();
if (this.ProjectState.IsSubmission)
{
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册