提交 0078fc21 编写于 作者: C CyrusNajmabadi

Merge branch 'reduceAllocations' into poolTriviaBuilders

......@@ -275,8 +275,8 @@ public SyntaxTriviaList InsertRange(int index, IEnumerable<SyntaxTrivia> trivia)
}
// Just return ourselves if we're not being asked to add anything.
var triviaList = trivia as ICollection;
if (triviaList.Count == 0)
var triviaCollection = trivia as ICollection;
if (triviaCollection != null && triviaCollection.Count == 0)
{
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册