Expand description
This module generates AST datatype used by rust-analyzer.
Specifically, it generates the SyntaxKind
enum and a number of newtype
wrappers around SyntaxNode
which implement syntax::AstNode
.
Modules§
- ast_src 🔒
- Defines input for code generation process.
Constants§
- TRAITS 🔒
Functions§
- clean_
token_ 🔒name - deduplicate_
fields 🔒 - extract_
enum_ 🔒traits - extract_
enums 🔒 - extract_
struct_ 🔒trait - extract_
struct_ 🔒traits - generate 🔒
- generate_
nodes 🔒 - generate_
syntax_ 🔒kinds - generate_
tokens 🔒 - lower 🔒
- lower_
enum 🔒 - lower_
rule 🔒 - lower_
separated_ 🔒list - pluralize 🔒
- to_
lower_ 🔒snake_ case - to_
pascal_ 🔒case - to_
upper_ 🔒snake_ case - write_
doc_ 🔒comment