Browse Source

Disable resolver logging.

newNRvisualizers
Daniel Grunwald 14 years ago
parent
commit
43a8429d30
  1. 10
      ICSharpCode.NRefactory.CSharp/Resolver/Log.cs

10
ICSharpCode.NRefactory.CSharp/Resolver/Log.cs

@ -37,19 +37,19 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
{ {
const bool logEnabled = false; const bool logEnabled = false;
// [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")] [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")]
internal static void WriteLine(string text) internal static void WriteLine(string text)
{ {
Debug.WriteLine(text); Debug.WriteLine(text);
} }
// [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")] [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")]
internal static void WriteLine(string format, params object[] args) internal static void WriteLine(string format, params object[] args)
{ {
Debug.WriteLine(format, args); Debug.WriteLine(format, args);
} }
// [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")] [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")]
internal static void WriteCollection<T>(string text, IEnumerable<T> lines) internal static void WriteCollection<T>(string text, IEnumerable<T> lines)
{ {
#if DEBUG #if DEBUG
@ -65,13 +65,13 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
#endif #endif
} }
// [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")] [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")]
public static void Indent() public static void Indent()
{ {
Debug.Indent(); Debug.Indent();
} }
// [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")] [Conditional(logEnabled ? "DEBUG" : "LOG_DISABLED")]
public static void Unindent() public static void Unindent()
{ {
Debug.Unindent(); Debug.Unindent();

Loading…
Cancel
Save