pub fn lower_protocol_ir(
protocol: &ServiceProtocol,
program: &CheckedProgram,
) -> ProtocolIrExpand description
P6.11 ([DECISION A], #1171): lower a service’s own from <protocol>
header into a real ProtocolIr — standalone, takes the sub-node
rather than the owning ServiceDecl (mirrors
lower_store_field_shape_ir), so a from websocket/from Events
fixture can pin the descriptor by itself.
WebSocket/Events type refs are resolved with an internal error on a
miss (#3166): the resolver rejects an unknown protocol type.