rbfmt 0.0.2

Ruby code formatter
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::fmt;

impl<'src> super::Parser<'src> {
    pub(super) fn parse_as_atom(&self, node: prism::Node) -> fmt::Node {
        let value = super::Parser::source_lossy_at(&node.location());
        fmt::Node::new(fmt::Kind::Atom(fmt::Atom(value)))
    }

    pub(super) fn parse_implicit(&self) -> fmt::Node {
        let atom = fmt::Atom("".to_string());
        fmt::Node::new(fmt::Kind::Atom(atom))
    }
}