Added support for captured local functions cast to delegates

このコミットが含まれているのは:
Sergio Pedri committed 2019-09-05 17:33:41 +02:00
1 親 a91b44a329
コミット e512c5839e
2ファイル変更
+19 -5

検索条件に一致するファイルはありません

+1 -1
ファイルの表示
@@ -208,7 +208,7 @@ namespace ComputeSharp.Shaders.Translation
{
string
sourceCode = DecompileMethodOrDeclaringType(methodInfo, true),
methodFixedCode = sourceCode.Replace(methodInfo.Name, methodInfo.Name.Replace("<", string.Empty).Replace(">", "_")),
methodFixedCode = sourceCode.Replace(methodInfo.Name, Regex.Replace(methodInfo.Name, "[<>|]", "_")),
prototype = methodFixedCode.Split(Environment.NewLine)[0],
commentedSourceCode = $"// {methodInfo.Name}{Environment.NewLine}{methodFixedCode}",
inFixedSourceCode = Regex.Replace(commentedSourceCode, @"(?<!\w)in ", string.Empty),