Module grammar

Module grammar 

Source
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 ๐Ÿ”’