From 549ca8c551aa23ef1c3682dd2bc39260dc34d846 Mon Sep 17 00:00:00 2001 From: Benjamin Bannier Date: Wed, 15 May 2024 15:34:32 +0200 Subject: [PATCH] Do not mark non-entrypoint units `public` --- analyzer/analyzer.spicy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/analyzer/analyzer.spicy b/analyzer/analyzer.spicy index f020a34..66270e5 100644 --- a/analyzer/analyzer.spicy +++ b/analyzer/analyzer.spicy @@ -27,7 +27,7 @@ public type Requests = unit { : Request[]; }; -public type Request = unit { +type Request = unit { request: RequestLine; message: Message(False, True); }; @@ -38,7 +38,7 @@ public type Replies = unit { : Reply[]; }; -public type Reply = unit { +type Reply = unit { reply: ReplyLine; message: Message(reply_code_needs_body(self.reply.status), False); }; @@ -185,7 +185,7 @@ type Body = unit(inout msg: Message, delivery_mode: DeliveryMode, is_request: bo } }; -public type Content = unit(msg: Message) { +type Content = unit(msg: Message) { data: bytes &chunked &eod { if ( |self.data| > 0 ) { self.have_content = True;