未验证 提交 30488b22 编写于 作者: F Fadi Hanna 提交者: GitHub

Cleanup warnings for uncompiled methods for some by-design scenarios (#250)

上级 4f9ae42d
......@@ -182,6 +182,20 @@ private bool ShouldSkipCompilation(IMethodNode methodCodeNodeNeedingCode)
{
return true;
}
if (MethodBeingCompiled.IsAbstract)
{
return true;
}
if (MethodBeingCompiled.OwningType.IsDelegate && (
MethodBeingCompiled.IsConstructor ||
MethodBeingCompiled.Name == "BeginInvoke" ||
MethodBeingCompiled.Name == "Invoke" ||
MethodBeingCompiled.Name == "EndInvoke"))
{
// Special methods on delegate types
return true;
}
return false;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册