fn parse_delimited_list<T, F>(
        &mut self,
        start_kind: TokenKind,
        end_kind: TokenKind,
        parse: F,
    ) -> ParseResult<List<T>>
    where
        F: Fn(&mut Self) -> ParseResult<T>,
    {
        let start = self.parse_kind(start_kind)?;
        let mut items = vec![];
        while !self.peek_kind(end_kind) {
            items.push(parse(self)?);
        }
        let end = self.parse_kind(end_kind)?;

        let span = Span::new(start.span.start, end.span.end);
        Ok(List {
            span,
            start,
            items,
            end,
        })
    }
/// Parse delimited items into a `List`
/// <start> <item>* <end>
Parse delimited items into a `List`
 * 
Parse delimited items into a ` List ` *
fn parse_delimited_list<T, F>(
        &mut self,
        start_kind: TokenKind,
        end_kind: TokenKind,
        parse: F,
    ) -> ParseResult<List<T>>
    where
        F: Fn(&mut Self) -> ParseResult<T>,
    {
        let start = self.parse_kind(start_kind)?;
        let mut items = vec![];
        while !self.peek_kind(end_kind) {
            items.push(parse(self)?);
        }
        let end = self.parse_kind(end_kind)?;
        let span = Span::new(start.span.start, end.span.end);
        Ok(List {
            span,
            start,
            items,
            end,
        })
    }
fn parse_delimited_list < T , F > ( & mut self , start_kind : TokenKind , end_kind : TokenKind , parse : F , ) -> ParseResult < List < T > > where F : Fn ( & mut Self ) -> ParseResult < T > , { let start = self . parse_kind ( start_kind ) ? ; let mut items = vec ! [ ] ; while ! self . peek_kind ( end_kind ) { items . push ( parse ( self ) ? ) ; } let end = self . parse_kind ( end_kind ) ? ; let span = Span :: new ( start . span . start , end . span . end ) ; Ok ( List { span , start , items , end , } ) }
Parse delimited items into a `List`
<start> <item>* <end>
Parse delimited items into a ` List ` <start > <item > * <end >
&mut self
start_kind
TokenKind
end_kind
TokenKind
parse
F
&mut self
start_kind
TokenKind
end_kind
TokenKind
parse
F