Merge: Keep going toolcontext
authorJean Privat <jean@pryen.org>
Thu, 4 Dec 2014 03:29:33 +0000 (22:29 -0500)
committerJean Privat <jean@pryen.org>
Thu, 4 Dec 2014 03:29:33 +0000 (22:29 -0500)
commitcdb5912880ecd518438486659f515e4984f93b7a
tree08f07d0f5da0611dbf2be6ae108bfa6ea33f44a6
parent8b1c481c7139f5fc6831b5ae31157f5a25891292
parente989f48e667db42e7ef09df76ead82e2adaa1667
Merge: Keep going toolcontext

For a compiler, exiting when the source-code is incoherent make sense. However for some tools, like nitlight, it could be useful to be able to process broken code (or just to ignore it and continue).

So, this PR introduce the flag `ToolContext::keep_going` to prevent `check_errors` to terminate the program. It is then the responsibility of the tool to manage the incomplete and possibly incoherent model that was produced.

Close #863

Pull-Request: #959
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
src/model/model.nit
src/modelize/modelize_property.nit