-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #68 from KvanTTT/javascript-php-parser-improvement
Javascript and PHP parsing improvements
- Loading branch information
Showing
61 changed files
with
1,565 additions
and
18,975 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
Sources/PT.PM.CSharpParseTreeUst.Tests/CSharpConverterTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
using System; | ||
using NLog; | ||
using PT.PM.Common; | ||
|
||
namespace PT.PM.Cli | ||
{ | ||
public class ConsoleFileLogger : FileLogger | ||
{ | ||
protected Logger NLogConsoleLogger { get; } = LogManager.GetLogger("console"); | ||
|
||
public override void LogError(Exception ex) | ||
{ | ||
base.LogError(ex); | ||
if (IsLogErrors) | ||
{ | ||
NLogConsoleLogger.Error($"Error: {PrepareForConsole(ex.Message.Trunc())}"); | ||
} | ||
} | ||
|
||
public override void LogInfo(string message) | ||
{ | ||
string truncatedMessage = message.Trunc(); | ||
base.LogInfo(truncatedMessage); | ||
NLogConsoleLogger.Info(PrepareForConsole(truncatedMessage)); | ||
} | ||
|
||
public override void LogDebug(string message) | ||
{ | ||
string truncatedMessage = message.Trunc(); | ||
base.LogDebug(truncatedMessage); | ||
if (IsLogDebugs) | ||
{ | ||
NLogConsoleLogger.Debug(PrepareForConsole(truncatedMessage)); | ||
} | ||
} | ||
|
||
protected string PrepareForConsole(string str) | ||
{ | ||
return str.Replace("\a", ""); | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.