未验证 提交 dd8e5569 编写于 作者: M Michal Strehovský 提交者: GitHub

Sync shared compiler file (#37700)

上级 4230ff94
......@@ -62,7 +62,7 @@ public static PointerType MakePointerType(this TypeDesc type)
public static TypeDesc GetParameterType(this TypeDesc type)
{
ParameterizedType paramType = (ParameterizedType) type;
ParameterizedType paramType = (ParameterizedType)type;
return paramType.ParameterType;
}
......@@ -381,17 +381,13 @@ public static bool ContainsSignatureVariables(this TypeDesc thisType)
return ((ParameterizedType)thisType).ParameterType.ContainsSignatureVariables();
case TypeFlags.FunctionPointer:
MethodSignature pointerSignature = ((FunctionPointerType)thisType).Signature;
var fptr = (FunctionPointerType)thisType;
if (fptr.Signature.ReturnType.ContainsSignatureVariables())
return true;
for (int i = 0; i < fptr.Signature.Length; i++)
{
if (fptr.Signature[i].ContainsSignatureVariables())
for (int i = 0; i < pointerSignature.Length; i++)
if (pointerSignature[i].ContainsSignatureVariables())
return true;
}
return false;
return pointerSignature.ReturnType.ContainsSignatureVariables();
case TypeFlags.SignatureMethodVariable:
case TypeFlags.SignatureTypeVariable:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册