summaryrefslogtreecommitdiff
path: root/src/parsetree.h
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@colm.net>2018-05-12 19:57:10 -0400
committerAdrian Thurston <thurston@colm.net>2018-05-12 19:57:10 -0400
commitb421b74dc376d1b10ba4dbb25ed721248ab3f8e4 (patch)
tree1a6e65e6a2df556f74215cf74eb17b51fe7154c4 /src/parsetree.h
parent63224902a50c68b3ce4e38827199bae4d50746f3 (diff)
downloadcolm-b421b74dc376d1b10ba4dbb25ed721248ab3f8e4.tar.gz
allow sending to lists of streams
Diffstat (limited to 'src/parsetree.h')
-rw-r--r--src/parsetree.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parsetree.h b/src/parsetree.h
index 015412b1..81157aee 100644
--- a/src/parsetree.h
+++ b/src/parsetree.h
@@ -2077,6 +2077,9 @@ struct UniqueType : public AvlTreeEl<UniqueType>
bool ptr()
{ return typeId == TYPE_STRUCT || typeId == TYPE_GENERIC; }
+ bool listOf( UniqueType *ut )
+ { return typeId == TYPE_GENERIC && generic->typeId == GEN_LIST && generic->valueUt == ut; }
+
bool val() {
return typeId == TYPE_STRUCT ||
typeId == TYPE_GENERIC ||