mirror of
https://github.com/sigmasternchen/xtext-core
synced 2025-03-16 16:58:56 +00:00
[trace] Fine grained tracing for structure of Jvm types, e.g. origins of type references, parameters or type parameters are traced
This commit is contained in:
parent
5882670c44
commit
cec0e93b34
1 changed files with 3 additions and 0 deletions
|
@ -33,6 +33,9 @@ public class TraceRegion extends AbstractStatefulTraceRegion {
|
|||
|
||||
public TraceRegion(int myOffset, int myLength, int myLineNumber, int myEndLineNumber, ILocationData locationData, @Nullable AbstractTraceRegion parent) {
|
||||
super(new TextRegionWithLineInformation(myOffset, myLength, myLineNumber, myEndLineNumber), locationData, parent);
|
||||
if (myOffset == myLength && myOffset == 0) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
if (parent == null) {
|
||||
if (locationData.getPath() == null) {
|
||||
throw new IllegalArgumentException("associatedPath may not be null");
|
||||
|
|
Loading…
Reference in a new issue