pub fn parse_lines<'a>(arena: &'a Arena<Syntax<'a>>, s: &str) -> Vec<&'a Syntax<'a>> {
    let mut res: Vec<&'a Syntax<'a>> = vec![];
    for (i, line) in s.lines().enumerate() {
        res.push(Syntax::new_atom(
            arena,
            vec![SingleLineSpan {
                line: i.into(),
                start_col: 0,
                end_col: line.len(),
            }],
            line,
            AtomKind::Other,
        ));
    }

    res
}
/// Split `s` by lines, and treat each line as an atom.
///
/// This is a fallback for files that we don't know how to parse.
Split `s` by lines, and treat each line as an atom.
This is a fallback for files that we don't know how to parse.
Split ` s ` by lines and treat each line as an atom . This is a fallback for files that we don ' t know how to parse .
pub fn parse_lines<'a>(arena: &'a Arena<Syntax<'a>>, s: &str) -> Vec<&'a Syntax<'a>> {
    let mut res: Vec<&'a Syntax<'a>> = vec![];
    for (i, line) in s.lines().enumerate() {
        res.push(Syntax::new_atom(
            arena,
            vec![SingleLineSpan {
                line: i.into(),
                start_col: 0,
                end_col: line.len(),
            }],
            line,
            AtomKind::Other,
        ));
    }
    res
}
pub fn parse_lines < ' a > ( arena : & ' a Arena < Syntax < ' a > > , s : & str ) -> Vec < & ' a Syntax < ' a > > { let mut res : Vec < & ' a Syntax < ' a > > = vec ! [ ] ; for ( i , line ) in s . lines ( ) . enumerate ( ) { res . push ( Syntax :: new_atom ( arena , vec ! [ SingleLineSpan { line i into ( ) start_col 0 end_col line len ( ) } ] , line , AtomKind :: Other , ) ) ; } res }
Split `s` by lines, and treat each line as an atom.
Split ` s ` by lines and treat each line as an atom .
arena
&'a Arena<Syntax<'a>>
s
&str