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)
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>

1  2 
src/model/model.nit
src/modelize/modelize_property.nit

Simple merge
Simple merge