summaryrefslogtreecommitdiff
path: root/vala/valasemanticanalyzer.vala
diff options
context:
space:
mode:
authorPrinceton Ferro <princetonferro@gmail.com>2022-01-24 22:32:01 -0500
committerRico Tzschichholz <ricotz@ubuntu.com>2022-01-25 12:25:30 +0100
commit44195a02c9d26453dc698282deb4947425a4b0b1 (patch)
tree522a7c4d58d1f831e2ef16a2451b9acf5ca518e4 /vala/valasemanticanalyzer.vala
parent0db2ebd9035c95efa062ecab310bca88a70d8faf (diff)
downloadvala-44195a02c9d26453dc698282deb4947425a4b0b1.tar.gz
vala: Add foreach statement support for GLib.Sequence
It is now possible to use foreach with a GLib.Sequence
Diffstat (limited to 'vala/valasemanticanalyzer.vala')
-rw-r--r--vala/valasemanticanalyzer.vala2
1 files changed, 2 insertions, 0 deletions
diff --git a/vala/valasemanticanalyzer.vala b/vala/valasemanticanalyzer.vala
index b49a8299d..80e54d9c1 100644
--- a/vala/valasemanticanalyzer.vala
+++ b/vala/valasemanticanalyzer.vala
@@ -164,6 +164,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
public DataType garray_type;
public DataType gvaluearray_type;
public DataType genericarray_type;
+ public DataType gsequence_type;
public Class gerror_type;
public DataType list_type;
public DataType tuple_type;
@@ -230,6 +231,7 @@ public class Vala.SemanticAnalyzer : CodeVisitor {
garray_type = new ObjectType ((Class) glib_ns.scope.lookup ("Array"));
gvaluearray_type = new ObjectType ((Class) glib_ns.scope.lookup ("ValueArray"));
genericarray_type = new ObjectType ((Class) glib_ns.scope.lookup ("GenericArray"));
+ gsequence_type = new ObjectType ((Class) glib_ns.scope.lookup ("Sequence"));
gerror_type = (Class) glib_ns.scope.lookup ("Error");
regex_type = new ObjectType ((Class) root_symbol.scope.lookup ("GLib").scope.lookup ("Regex"));