syn-rsx
syn-rsx copied to clipboard
`NodeValue` struct
Currently Node::value is just Option<Expr>. Introducing NodeValue as a wrapper around Expr would allow for a few enhancements, namely
- Implement
TryIntoinstead of the currently usedvalue_as_*methods onNode - Get the span for just the value from
NodeValueinstead of fromNode