diff options
author | Simon Werbeck <simon.werbeck@gmail.com> | 2016-10-02 00:20:59 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2016-10-06 14:53:40 +0200 |
commit | 78588e6cf96a6f239840f728aedc2ecf5aabf7de (patch) | |
tree | eb0517ad3f379c0a8e4c5ee39227bf79100c53f3 /vala/valaexpression.vala | |
parent | 1fcd716d3b9b3d7b740a4c488cd6a28c0e5f0414 (diff) | |
download | vala-78588e6cf96a6f239840f728aedc2ecf5aabf7de.tar.gz |
vala: Check accessibility of default arguments
https://bugzilla.gnome.org/show_bug.cgi?id=648030
Diffstat (limited to 'vala/valaexpression.vala')
-rw-r--r-- | vala/valaexpression.vala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vala/valaexpression.vala b/vala/valaexpression.vala index 620086e98..5f7a02333 100644 --- a/vala/valaexpression.vala +++ b/vala/valaexpression.vala @@ -78,6 +78,14 @@ public abstract class Vala.Expression : CodeNode { return false; } + /** + * Check whether symbol_references in this expression are at least + * as accessible as the specified symbol. + */ + public virtual bool is_accessible (Symbol sym) { + return true; + } + public Statement? parent_statement { get { var expr = parent_node as Expression; |