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