(
state: &mut ParserState<'heap, '_, '_>,
key: &Key<'_>,
)
| 29 | |
| 30 | impl<'heap> ListNode<'heap> { |
| 31 | pub(crate) fn parse( |
| 32 | state: &mut ParserState<'heap, '_, '_>, |
| 33 | key: &Key<'_>, |
| 34 | ) -> Result<Self, ParserDiagnostic> { |
| 35 | let expr = parse_list(state)?; |
| 36 | |
| 37 | Ok(Self { |
| 38 | key_span: key.span, |
| 39 | expr, |
| 40 | r#type: None, |
| 41 | }) |
| 42 | } |
| 43 | |
| 44 | pub(crate) fn with_type(mut self, r#type: TypeNode<'heap>) -> Self { |
| 45 | self.r#type = Some(r#type); |
nothing calls this directly
no test coverage detected