diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-02 15:25:44 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2019-09-02 15:47:11 +0200 |
commit | 1430c461d4a45026331663989113feb195588255 (patch) | |
tree | 2e1de04b82073d4f992eebbe4c224837ea40a04f /vala/valacodecontext.vala | |
parent | aaa657e45450e31103b1bc6fa2f2c668f23f99b6 (diff) | |
download | vala-1430c461d4a45026331663989113feb195588255.tar.gz |
Add boolean CodeContext.keep_going and corresponding compiler option
If keep_going is set then check() will continue after hitting errors in
resolver and analyzer.
Diffstat (limited to 'vala/valacodecontext.vala')
-rw-r--r-- | vala/valacodecontext.vala | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index b2fc8eaf3..412b20eeb 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -174,6 +174,11 @@ public class Vala.CodeContext { public bool use_fast_vapi { get; set; } /** + * Continue as much as possible after an error. + */ + public bool keep_going { get; set; } + + /** * Include comments in generated vapi. */ public bool vapi_comments { get; set; } @@ -509,13 +514,13 @@ public class Vala.CodeContext { public void check () { resolver.resolve (this); - if (report.get_errors () > 0) { + if (!keep_going && report.get_errors () > 0) { return; } analyzer.analyze (this); - if (report.get_errors () > 0) { + if (!keep_going && report.get_errors () > 0) { return; } |