import org.simantics.scl.compiler.errors.Failable;
import org.simantics.scl.compiler.errors.Failure;
import org.simantics.scl.compiler.errors.Locations;
-import org.simantics.scl.compiler.errors.Success;
import org.simantics.scl.compiler.module.Module;
import org.simantics.scl.compiler.module.repository.ModuleRepository;
import org.simantics.scl.compiler.module.repository.UpdateListener;
true, error.description);
int begin = Locations.beginOf(error.location);
int end = Locations.endOf(error.location);
+ if(begin < 0 || end < begin) {
+ begin = 0;
+ end = 1;
+ }
Position position = new Position(begin, end - begin);
addAnnotation(annotation, position);
}