From b421b74dc376d1b10ba4dbb25ed721248ab3f8e4 Mon Sep 17 00:00:00 2001 From: Adrian Thurston Date: Sat, 12 May 2018 19:57:10 -0400 Subject: allow sending to lists of streams --- src/parsetree.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/parsetree.h') 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 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 || -- cgit v1.2.1