commit 59e2c9f58b2a32c3e62d51da8a9656949bc735ae
parent b86c3b84705a830eb0dbf00928fe815a31725720
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 21 Apr 2022 15:52:28 -0400
hare::types: don't show implementation comments in haredoc
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/hare/types/types.ha b/hare/types/types.ha
@@ -21,6 +21,7 @@ export type array = struct {
// A built-in primitive type (int, bool, str, etc).
export type builtin = enum u8 {
// Keep me consistent with ast::builtin
+
BOOL, CHAR, F32, F64, FCONST, I16, I32, I64, I8, ICONST, INT, NULL,
RUNE, SIZE, STR, U16, U32, U64, U8, UINT, UINTPTR, VALIST, VOID,
};
@@ -54,8 +55,9 @@ export type func = struct {
// Flags which apply to a pointer type.
export type pointer_flags = enum u8 {
- NONE = 0,
// Keep me consistent with ast::pointer_flags
+
+ NONE = 0,
NULLABLE = 1 << 0,
};
@@ -105,8 +107,9 @@ export type tuple_value = struct {
// Flags for a Hare type.
export type flags = enum u8 {
- NONE = 0,
// Keep me consistent with ast::type_flags
+
+ NONE = 0,
CONST = 1 << 0,
ERROR = 1 << 1,
};