Browse Source

Fix #1340: Update local function check to match latest version of Roslyn.

pull/1347/head
Siegfried Pammer 7 years ago
parent
commit
091dc25a82
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/LocalFunctionDecompiler.cs

2
ICSharpCode.Decompiler/IL/Transforms/LocalFunctionDecompiler.cs

@ -60,7 +60,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -60,7 +60,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
/// Newer Roslyn versions use the format "&ltcallerName&gtg__functionName|x_y"
/// Older versions use "&ltcallerName&gtg__functionNamex_y"
/// </summary>
static readonly Regex functionNameRegex = new Regex(@"^<(.*)>g__(.*)\|{0,1}\d+_\d+$", RegexOptions.Compiled);
static readonly Regex functionNameRegex = new Regex(@"^<(.*)>g__(.*)\|{0,1}\d+(_\d+)?$", RegexOptions.Compiled);
static bool ParseLocalFunctionName(string name, out string callerName, out string functionName)
{

Loading…
Cancel
Save