macroforge_ts_quote 0.1.73

Quote macro for generating TypeScript code at compile time
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;

impl Codegen {
    /// Check if a node is a fragment that should be grouped with adjacent fragments.
    pub(super) fn is_fragment_node(&self, node: &IrNode) -> bool {
        matches!(
            node,
            IrNode::Ident { .. }
                | IrNode::StrLit { .. }
                | IrNode::IdentBlock { .. }
                | IrNode::StringInterp { .. }
                | IrNode::Placeholder { .. }
        )
    }
}