diff options
Diffstat (limited to 'vala/valacodecontext.vala')
-rw-r--r-- | vala/valacodecontext.vala | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/vala/valacodecontext.vala b/vala/valacodecontext.vala index 628f71ed4..0ca1961ac 100644 --- a/vala/valacodecontext.vala +++ b/vala/valacodecontext.vala @@ -47,6 +47,11 @@ public class Vala.CodeContext { public bool hide_internal { get; set; } /** + * Do not check whether used symbols exist in local packages. + */ + public bool since_check { get; set; } + + /** * Do not warn when using experimental features. */ public bool experimental { get; set; } @@ -390,7 +395,7 @@ public class Vala.CodeContext { * Read the given filename and pull in packages. * The method is tolerant if the file does not exist. * - * @param filename a filanem + * @param filename a filename * @return false if an error occurs while reading the file or if a package could not be added */ public bool add_packages_from_file (string filename) { @@ -493,6 +498,12 @@ public class Vala.CodeContext { } flow_analyzer.analyze (this); + + if (report.get_errors () > 0) { + return; + } + + used_attr.check_unused (this); } public void load_plugins () { |