We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c23bc89 commit 4e30a41Copy full SHA for 4e30a41
src/Generator/Generators/CodeGenerator.cs
@@ -96,11 +96,8 @@ public virtual void GenerateDeclarationCommon(Declaration decl)
96
public virtual void GenerateDebug(Declaration decl)
97
{
98
if (Options.GenerateDebugOutput && !string.IsNullOrWhiteSpace(decl.DebugText))
99
- {
100
- var debugText = decl.DebugText;
101
- debugText = Regex.Replace(debugText.Trim(), "\r?\n", "\n// DEBUG: ");
102
- WriteLine($"// DEBUG: {debugText}");
103
- }
+ foreach (var line in Regex.Split(decl.DebugText.Trim(), "\r?\n"))
+ WriteLine($"// DEBUG: {line}");
104
}
105
106
#endregion
0 commit comments