Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out tokens vs nodes for literals #1

Closed
TedDriggs opened this issue Apr 14, 2022 · 0 comments
Closed

Figure out tokens vs nodes for literals #1

TedDriggs opened this issue Apr 14, 2022 · 0 comments

Comments

@TedDriggs
Copy link
Owner

Goal: Have something akin to syn::Lit and support Operand::lit(&self) -> Option<Lit>.

Right now, literals are represented by single tokens, and it's unclear how to create AST node wrappers for those. Just using ast_node doesn't work, because Rowan doesn't consider these nodes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant