提交 2a5db507 编写于 作者: C Cyrus Najmabadi

Comments.

上级 d4db5f9d
......@@ -113,8 +113,9 @@ protected override void InitializeWorker(AnalysisContext context)
return;
}
// Use the type checker to see if this is a type we can use range-indexer for, and also
// if this is a call to the Slice-Like method we've found for that type.
// See if this is a type we can use range-indexer for, and also if this is a call to the
// Slice-Like method we've found for that type. Use the InfoCache so that we can reuse
// any previously computed values for this type.
if (!infoCache.TryGetMemberInfo(targetMethod.ContainingType, out var memberInfo) ||
!targetMethod.Equals(memberInfo.SliceLikeMethod))
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册