Server.next: def of bolt@1.27.0.0 Import: import bolt@1.27.0.0/src/lsp/server.bend as Server Lines 631-644 of bolt@1.27.0.0/src/lsp/server.bend: https://jend.leeeet.dev/read.txt?path=bolt@1.27.0.0/src/lsp/server.bend&start_line=631&end_line=644 import Base import bolt@1.27.0.0/src/lsp/docs.bend as Docs import bolt@1.27.0.0/src/lsp/enc.bend as Enc # the loop goes on with the documents, unless the message said to quit def next( # noqa: L001 serve loop IO -H: Type, quit: Bool, h3: H, ee: Enc.Enc, docs: List<&2, Docs.Doc>, rest: H -> Enc.Enc -> List<&2, Docs.Doc> -> IO(Unit) ) -> IO(Unit): match quit: case True{}: IO.pure(Unit, Unit{}) case False{}: rest(h3, ee, docs) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.pure https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Unit https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/docs.bend&name=Doc https://jend.leeeet.dev/definition.txt?path=bolt@1.27.0.0/src/lsp/enc.bend&name=Enc