Permalink
Browse files

BWLocation have complete spans if possible (patch from Martijn Schrage)

  • Loading branch information...
1 parent 72c5081 commit 1e889e5b53a51520947639e4d1a781f63374eed2 @JPMoresmau committed Jul 1, 2012
@@ -1,3 +1,3 @@
-# bundle manifest
-bundleVendor = The EclipseFP Project
+# bundle manifest
+bundleVendor = The EclipseFP Project
bundleName = Haskell BuildWrapper Utilities
@@ -689,7 +689,13 @@ private boolean parseNotes(JSONArray notes,Set<IResource> ress){
String f=ol.getString("f");
int line=ol.getInt("l");
int col=ol.getInt("c");
- Location loc=new Location(f, line, col, line, col);
+ int endline=ol.getInt("el");
+ int endcol=ol.getInt("ec");
+ //ow.addMessage("\nParsed location: src="+f+" "+line+":"+col+" to "+endline+":"+endcol+" msg:"+o.getString("t"));
+
+ Location loc=new Location(project, f, line, col, endline, endcol);
+ //ow.addMessage("\nCreated location: "+loc.getStartLine()+":"+loc.getStartColumn()+" to "+loc.getEndLine()+":"+loc.getEndColumn());
+
Note n=new Note(k,loc,o.getString("t"),"");
IResource res=project.findMember(f);
// linker errors may have full path
@@ -720,7 +726,7 @@ private boolean parseNotes(JSONArray notes,Set<IResource> ress){
}
return buildOK;
}
-
+
private Component parseComponent(JSONObject obj){
boolean buildable=false;
try {
Oops, something went wrong.

0 comments on commit 1e889e5

Please sign in to comment.