[vala/0.40] vala: Implement check() for StatementList
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.40] vala: Implement check() for StatementList
- Date: Sun, 28 Oct 2018 09:31:35 +0000 (UTC)
commit 636fe28df3329f7b494743d7c237699aa5790d60
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 934227a1a..07a84139b 100644
--- a/vala/valastatementlist.vala
+++ b/vala/valastatementlist.vala
@@ -54,6 +54,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]