summaryrefslogtreecommitdiff
path: root/vala/valacodecontext.vala
diff options
context:
space:
mode:
authorBen Iofel <iofelben@gmail.com>2016-02-15 22:34:58 -0500
committerBen Iofel <iofelben@gmail.com>2016-02-15 22:34:58 -0500
commit26bdfb63f25b70098071800582ba505e39b810b5 (patch)
tree94d46f17697e0dda7d0cff78646af2bdafc8c1be /vala/valacodecontext.vala
parent1b717f1f76ce974f7f250138e00d74ef3f92e2f1 (diff)
parent4f0627532da356515555feac10f84db99af859a6 (diff)
downloadvala-wip/beniofel/transform.tar.gz
Merge branch 'master' into wip/beniofel/transformwip/beniofel/transform
Diffstat (limited to 'vala/valacodecontext.vala')
-rw-r--r--vala/valacodecontext.vala13
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 () {