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 - generate ๐
- generate_
nodes ๐ - 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