Skip to content
Snippets Groups Projects
Commit 997bda6d authored by Jesper's avatar Jesper
Browse files

Exclude source location for implicit declarations

parent 2d57fb5a
Branches
No related tags found
No related merge requests found
......@@ -265,6 +265,7 @@ public class JsonBuilder {
ragFile = declaredat;
lineno = "0";
}
// Exclude source location for implicitly generated code (ragFile==ASTNode).
if (!ragFile.equals("ASTNode")) {
String relativePath = RelativePath.getRelativePath(ragFile, ragRoot);
if (!sourceFiles.containsKey(relativePath)) {
......@@ -274,11 +275,8 @@ public class JsonBuilder {
}
}
doc.add("ragFile", Json.of(relativePath));
} else {
// Not a real source file.
doc.add("ragFile", new JsonString(ragFile));
doc.add("line", new JsonString(lineno));
}
doc.add("line", new JsonString(lineno));
break;
case "aspect":
aspectName = tag.text;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment