[vala/0.48] vala: Implement CodeWriter.visit_foreach_statement()
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.48] vala: Implement CodeWriter.visit_foreach_statement()
- Date: Sun, 24 Oct 2021 13:13:01 +0000 (UTC)
commit 7240bf2cf1d10f4a2fa4fbfe36cdc2b315459bee
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 23 15:27:12 2021 +0200
vala: Implement CodeWriter.visit_foreach_statement()
vala/valacodewriter.vala | 9 +++++++++
1 file changed, 9 insertions(+)
---
diff --git a/vala/valacodewriter.vala b/vala/valacodewriter.vala
index 24f204147..82f7efb49 100644
--- a/vala/valacodewriter.vala
+++ b/vala/valacodewriter.vala
@@ -1139,6 +1139,15 @@ public class Vala.CodeWriter : CodeVisitor {
}
public override void visit_foreach_statement (ForeachStatement stmt) {
+ write_indent ();
+ write_string ("foreach (");
+ write_type (stmt.type_reference);
+ write_string (" ");
+ write_string (stmt.variable_name);
+ write_string (" in ");
+ stmt.collection.accept (this);
+ write_string (")");
+ stmt.body.accept (this);
}
public override void visit_break_statement (BreakStatement stmt) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]