Skip to content

Commit 9747a2b

Browse files
DarkOozesiegfriedpammer
authored andcommitted
Escape identifiers containing repeating dots
1 parent b45c009 commit 9747a2b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ICSharpCode.Decompiler/Disassembler/DisassemblerHelpers.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,9 @@ static bool IsValidIdentifier(string identifier)
120120
if (identifier[0] == '.')
121121
return identifier == ".ctor" || identifier == ".cctor";
122122

123+
if (identifier.Contains(".."))
124+
return false;
125+
123126
if (Metadata.ILOpCodeExtensions.ILKeywords.Contains(identifier))
124127
return false;
125128

0 commit comments

Comments
 (0)