[vala/staging] vala: Implement check() for StatementList
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] vala: Implement check() for StatementList
- Date: Wed, 24 Oct 2018 12:54:01 +0000 (UTC)
commit 2691a81e9837fcccb46e5f30f081db415c28945b
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Oct 24 14:05:09 2018 +0200
vala: Implement check() for StatementList
vala/valastatementlist.vala | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/vala/valastatementlist.vala b/vala/valastatementlist.vala
index 515959815..f773a5ca7 100644
--- a/vala/valastatementlist.vala
+++ b/vala/valastatementlist.vala
@@ -60,6 +60,15 @@ public class Vala.StatementList : CodeNode, Statement {
}
}
+ public override bool check (CodeContext context) {
+ foreach (Statement stmt in list) {
+ if (!stmt.check (context)) {
+ return false;
+ }
+ }
+ return true;
+ }
+
public override void emit (CodeGenerator codegen) {
foreach (Statement stmt in list) {
stmt.emit (codegen);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]