+
+ public static InternalCompilerError injectLocation(long location, Throwable cause) {
+ if(cause instanceof InternalCompilerError) {
+ InternalCompilerError e = (InternalCompilerError)cause;
+ if(e.location == Locations.NO_LOCATION)
+ e.location = location;
+ return e;
+ }
+ else
+ return new InternalCompilerError(location, cause);
+ }