]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
vala: Add Block.get_local_constants()
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 19 Sep 2018 10:28:16 +0000 (12:28 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Wed, 19 Sep 2018 10:28:16 +0000 (12:28 +0200)
vala/valablock.vala

index 372e70955307891f565aeee6a1fea4ef21b53275..cfe0e2498127bac5650048a983e29f5443aebf37 100644 (file)
@@ -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);
        }