[vala/staging] vala: Add Block.get_local_constants()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Add Block.get_local_constants()
- Date: Wed, 19 Sep 2018 10:43:44 +0000 (UTC)
commit 5e9e21f90f28f0f96b9f139704608849355e5bc4
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Sep 19 12:28:16 2018 +0200
vala: Add Block.get_local_constants()
vala/valablock.vala | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/vala/valablock.vala b/vala/valablock.vala
index 372e70955..cfe0e2498 100644
--- a/vala/valablock.vala
+++ b/vala/valablock.vala
@@ -125,6 +125,15 @@ public class Vala.Block : Symbol, Statement {
scope.add (constant.name, constant);
}
+ /**
+ * Returns the list of local constants.
+ *
+ * @return constants list
+ */
+ public List<Constant> get_local_constants () {
+ return local_constants;
+ }
+
public override void accept (CodeVisitor visitor) {
visitor.visit_block (this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]