-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prototype of the new parser interface
- Loading branch information
Showing
10 changed files
with
136 additions
and
139 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
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
3 changes: 2 additions & 1 deletion
3
javaparser-core/src/main/java/com/github/javaparser/ParserConfiguration.java
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package com.github.javaparser; | ||
|
||
public class ParserConfiguration { | ||
|
||
public boolean doNotAssignCommentsPrecedingEmptyLines = true; | ||
public boolean doNotConsiderAnnotationsAsNodeStartForCodeAttribution = false; | ||
} |
23 changes: 13 additions & 10 deletions
23
javaparser-core/src/main/java/com/github/javaparser/Problem.java
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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
package com.github.javaparser; | ||
|
||
/** | ||
* A problem that was encountered during parsing. | ||
*/ | ||
public class Problem { | ||
public final String message; | ||
public final Range range; | ||
public final String message; | ||
public final Range range; | ||
|
||
public Problem(String message, Range range) { | ||
this.message = message; | ||
this.range = range; | ||
} | ||
Problem(String message, Range range) { | ||
this.message = message; | ||
this.range = range; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return message + " " + range; | ||
} | ||
@Override | ||
public String toString() { | ||
return message + " " + range; | ||
} | ||
} |
Oops, something went wrong.