~sircmpwn/helios-devel

ipcgen: Make switches exhaustive v1 APPLIED

Alexey Yerin: 1
 Make switches exhaustive

 3 files changed, 3 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/helios-devel/patches/44533/mbox | git am -3
Learn more about email & git

[PATCH ipcgen] Make switches exhaustive Export this patch

---
 parse/document.ha  | 1 +
 parse/interface.ha | 1 +
 parse/type.ha      | 1 +
 3 files changed, 3 insertions(+)

diff --git a/parse/document.ha b/parse/document.ha
index fab7396..e82e61f 100644
--- a/parse/document.ha
+++ b/parse/document.ha
@@ -33,6 +33,7 @@ export fn document(lex: *lex::lexer) (ast::document | error) = {
			append(doc.errors, err);
		case ltok::EOF =>
			break;
		case => abort();
		};
	};

diff --git a/parse/interface.ha b/parse/interface.ha
index d821d48..e3abb36 100644
--- a/parse/interface.ha
+++ b/parse/interface.ha
@@ -161,6 +161,7 @@ fn capabilities(lex: *lex::lexer, meth: *ast::method) (void | error) = {
			};
			caps = &meth.caps_out;
			yield;
		case => abort();
		};
	};
};
diff --git a/parse/type.ha b/parse/type.ha
index 29eef45..d8885e4 100644
--- a/parse/type.ha
+++ b/parse/type.ha
@@ -53,5 +53,6 @@ fn ipc_type(lex: *lex::lexer) (ast::ipc_type | error) = {
	case ltok::WORD =>
		lex::unlex(lex, tok);
		return ident(lex)?;
	case => abort();
	};
};
-- 
2.42.0
Thanks!

To git@git.sr.ht:~sircmpwn/ipcgen
   7249825..0ca229e  master -> master