Index: src/SynTree/Declaration.h
===================================================================
--- src/SynTree/Declaration.h	(revision 37cdd97f319c512b8374d214748e986930e2e8f8)
+++ src/SynTree/Declaration.h	(revision 427854baeaba2d97cb23623b6d3c3ad7f7b0dbdd)
@@ -302,6 +302,7 @@
 
 	bool is_coroutine() { return kind == Coroutine; }
-	bool is_monitor() { return kind == Monitor; }
-	bool is_thread() { return kind == Thread; }
+	bool is_generator() { return kind == Generator; }
+	bool is_monitor  () { return kind == Monitor  ; }
+	bool is_thread   () { return kind == Thread   ; }
 
 	virtual StructDecl * clone() const override { return new StructDecl( *this ); }
Index: src/SynTree/Statement.h
===================================================================
--- src/SynTree/Statement.h	(revision 37cdd97f319c512b8374d214748e986930e2e8f8)
+++ src/SynTree/Statement.h	(revision 427854baeaba2d97cb23623b6d3c3ad7f7b0dbdd)
@@ -425,5 +425,5 @@
   public:
 	CompoundStmt * then = nullptr;
-	enum { None, Coroutine, Generator } type = None;
+	enum Type { None, Coroutine, Generator } type = None;
 
 	SuspendStmt() = default;
