Skip to content

Commit 7704ebf

Browse files
committed
0.15.3 - Update dependency twg2-logging@0.3.0
1 parent 6d8af05 commit 7704ebf

File tree

6 files changed

+25
-19
lines changed

6 files changed

+25
-19
lines changed

CHANGELOG.md

+13-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
44

55

66
--------
7-
### [0.15.2](N/A) - 2017-12-22
7+
### [0.15.3](N/A) - 2017-12-30
8+
#### Changed
9+
* Update dependency `jtwg2-logging@0.3.0`
10+
11+
12+
--------
13+
### [0.15.2](https://github.com/TeamworkGuy2/JParseCode/commit/6d8af0544a624f451828f8dde70bc7f78f281ea8) - 2017-12-22
814
#### Changed
915
* Upgrade to Java 9
1016
* Upgrade to JUnit 5
@@ -16,7 +22,7 @@ This project does its best to adhere to [Semantic Versioning](http://semver.org/
1622
--------
1723
### [0.15.1](https://github.com/TeamworkGuy2/JParseCode/commit/6136531b49a776590a9d8b23ab2cd27c40d4be10) - 2017-11-11
1824
#### Changed
19-
* Update dependency jtext-parser@0.13.0
25+
* Update dependency `jtext-parser@0.13.0`
2026
* Add some test cases
2127

2228

@@ -37,8 +43,8 @@ Simplified class names and generic type signatures:
3743
### [0.14.5](https://github.com/TeamworkGuy2/JParseCode/commit/283d487a7e04d7355451f2fe641cacff2e026cc3) - 2017-08-20
3844
#### Changed
3945
* Update dependencies:
40-
* jfunc@0.3.0 (Predicates.Char -> CharPredicate)
41-
* jtext-parser@0.12.0 (CharParserPredicate interface instead of BiPredicates.CharObject<TextParser>)
46+
* `jfunc@0.3.0` (`Predicates.Char` -> `CharPredicate`)
47+
* `jtext-parser@0.12.0` (`CharParserPredicate` interface instead of `BiPredicates.CharObject<TextParser>`)
4248

4349

4450
--------
@@ -73,9 +79,9 @@ Simplified class names and generic type signatures:
7379
### [0.14.1](https://github.com/TeamworkGuy2/JParseCode/commit/53806a53d3b8152b35e3166a81dbe9a81a49f354) - 2016-12-03
7480
#### Changed
7581
* Updated dependencies:
76-
* jtext-parser@0.11.0
77-
* jtext-tokenizer@0.2.0
78-
* jparser-primitive@0.2.0
82+
* `jtext-parser@0.11.0`
83+
* `jtext-tokenizer@0.2.0`
84+
* `jparser-primitive@0.2.0`
7985
* This includes a new parsing strategy which tries to parse non-compound tokens from start to finish using one parser at a time without passing the characters to compound parser, this improves performance and simplifies some of the compound parsers, but makes some compound parsers more difficult, such as ending conditions that try to keep track of characters between the start and end of the compound parser segment
8086
* `GenericTypeTokenizer` and `IdentifierTokenizer` changes to properly parse nullable generic parameters
8187

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
JParseCode
22
==============
3-
version: 0.15.2
3+
version: 0.15.3
44

55
In progress C#/Java/TypeScript parser tools built atop [JTextParser] (https://github.com/TeamworkGuy2/JTextParser), [Jackson] (https://github.com/FasterXML/jackson-core/) (core, databind, annotations) and half a dozen other utility libraries.
66

bin/jparse_code-with-tests.jar

-563 Bytes
Binary file not shown.

bin/jparse_code.jar

-623 Bytes
Binary file not shown.

package-lib.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version" : "0.15.2",
2+
"version" : "0.15.3",
33
"name" : "jparse-code",
44
"description" : "An in-progress suite of parsing/transpilation tools for C#, Java, and TypeScript code. Generates simple JSON ASTs.",
55
"homepage" : "https://github.com/TeamworkGuy2/JParseCode",

src/twg2/parser/workflow/ParserWorkflow.java

+10-10
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@
2929
import twg2.io.files.FileFormatException;
3030
import twg2.io.files.FileReadUtil;
3131
import twg2.io.json.stringify.JsonStringify;
32-
import twg2.logging.Logging;
33-
import twg2.logging.LoggingImpl;
34-
import twg2.logging.LoggingPrefixFormat;
32+
import twg2.logging.LogPrefixFormat;
33+
import twg2.logging.LogService;
34+
import twg2.logging.LogServiceImpl;
3535
import twg2.parser.codeParser.BlockType;
3636
import twg2.parser.codeParser.analytics.PerformanceTrackers;
3737
import twg2.parser.codeParser.csharp.CsBlock;
@@ -63,7 +63,7 @@ public ParserWorkflow(List<DirectorySearchInfo> sources, List<DestinationInfo> d
6363

6464
public void run(Level logLevel, ExecutorService executor, FileReadUtil fileReader, PerformanceTrackers perfTracking) throws IOException, FileFormatException {
6565
HashSet<List<String>> missingNamespaces = new HashSet<>();
66-
Logging log = this.logFile != null ? new LoggingImpl(logLevel, new PrintStream(this.logFile.toFile()), LoggingPrefixFormat.DATETIME_LEVEL_AND_CLASS) : null;
66+
LogServiceImpl log = this.logFile != null ? new LogServiceImpl(logLevel, new PrintStream(this.logFile.toFile()), LogPrefixFormat.DATETIME_LEVEL_AND_CLASS) : null;
6767

6868
val loadRes = SourceFiles.load(this.sources);
6969
if(log != null) {
@@ -146,8 +146,8 @@ public ParsedResult(ProjectClassSet.Intermediate<? extends BlockType> compilatio
146146
}
147147

148148

149-
public void log(Logging log, Level level, boolean includeHeader) {
150-
if(Logging.wouldLog(log, level)) {
149+
public void log(LogService log, Level level, boolean includeHeader) {
150+
if(LogService.wouldLog(log, level)) {
151151
val files = compilationUnits.getCompilationUnitsStartWith(Arrays.asList(""));
152152
val fileSets = new HashMap<CodeFileSrc, List<ClassAst.SimpleImpl<BlockType>>>();
153153
for(val file : files) {
@@ -206,8 +206,8 @@ public ResolvedResult(ProjectClassSet.Resolved<? extends BlockType> compilationU
206206
}
207207

208208

209-
public void log(Logging log, Level level, boolean includeHeader) {
210-
if(Logging.wouldLog(log, level)) {
209+
public void log(LogService log, Level level, boolean includeHeader) {
210+
if(LogService.wouldLog(log, level)) {
211211
val files = compilationUnits.getCompilationUnitsStartWith(Arrays.asList(""));
212212
val fileSets = new HashMap<CodeFileSrc, List<ClassAst.ResolvedImpl<BlockType>>>();
213213
for(val file : files) {
@@ -267,8 +267,8 @@ public FilterResult(Map<? extends DestinationInfo, ? extends List<? extends Code
267267
}
268268

269269

270-
public void log(Logging log, Level level, boolean includeHeader) {
271-
if(Logging.wouldLog(log, level)) {
270+
public void log(LogService log, Level level, boolean includeHeader) {
271+
if(LogService.wouldLog(log, level)) {
272272
val sb = new StringBuilder();
273273
if(includeHeader) {
274274
sb.append(newline);

0 commit comments

Comments
 (0)