Skip to content

Commit 50e62ac

Browse files
Replace Console.WriteLine with Debug.WriteLine
1 parent 34a2c9e commit 50e62ac

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ICSharpCode.ILSpyX/MermaidDiagrammer/Generator.Run.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
// DEALINGS IN THE SOFTWARE.
1818

1919
using System;
20+
using System.Diagnostics;
2021
using System.IO;
2122
using System.Linq;
2223
using System.Text.Json;
@@ -45,7 +46,7 @@ public void Run()
4546
if (File.Exists(xmlDocsPath))
4647
xmlDocs = new XmlDocumentationFormatter(new XmlDocumentationProvider(xmlDocsPath), StrippedNamespaces?.ToArray());
4748
else
48-
Console.WriteLine("No XML documentation file found. Continuing without.");
49+
Debug.WriteLine("No XML documentation file found. Continuing without.");
4950

5051
return xmlDocs;
5152
}
@@ -104,7 +105,7 @@ private void GenerateOutput(string assemblyPath, ClassDiagrammer model)
104105
if (JsonOnly)
105106
{
106107
File.WriteAllText(Path.Combine(outputFolder, "model.json"), modelJson);
107-
Console.WriteLine("Successfully generated model.json for HTML diagrammer.");
108+
Debug.WriteLine("Successfully generated model.json for HTML diagrammer.");
108109
}
109110
else
110111
{
@@ -123,7 +124,7 @@ private void GenerateOutput(string assemblyPath, ClassDiagrammer model)
123124
foreach (var resource in new[] { "styles.css", "ILSpy.ico", "script.js" })
124125
EmbeddedResource.CopyTo(outputFolder, resource);
125126

126-
Console.WriteLine("Successfully generated HTML diagrammer.");
127+
Debug.WriteLine("Successfully generated HTML diagrammer.");
127128
}
128129

129130
if (ReportExludedTypes)

ICSharpCode.ILSpyX/Search/CSharpLexer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public void StartPeek()
257257
/// <returns>An <see cref="Token"/> object.</returns>
258258
public Literal Peek()
259259
{
260-
// Console.WriteLine("Call to Peek");
260+
// Debug.WriteLine("Call to Peek");
261261
if (peekToken.next == null)
262262
{
263263
peekToken.next = Next();
@@ -275,7 +275,7 @@ public virtual Literal NextToken()
275275
if (curToken == null)
276276
{
277277
curToken = Next();
278-
//Console.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")");
278+
// Debug.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")");
279279
return curToken;
280280
}
281281

@@ -287,7 +287,7 @@ public virtual Literal NextToken()
287287
}
288288

289289
curToken = curToken.next;
290-
//Console.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")");
290+
// Debug.WriteLine(ICSharpCode.NRefactory.Parser.CSharp.Tokens.GetTokenString(curToken.kind) + " -- " + curToken.val + "(" + curToken.kind + ")");
291291
return curToken;
292292
}
293293

0 commit comments

Comments
 (0)