This commit is contained in:
Veetaha 2020-06-12 02:06:28 +03:00
parent 36353bb182
commit 4fefc7d06c
2 changed files with 6 additions and 6 deletions

View file

@ -68,7 +68,7 @@ fn generate_nodes(kinds: KindsSrc<'_>, grammar: AstSrc<'_>) -> Result<String> {
.iter()
.map(|node| {
let name = format_ident!("{}", node.name);
let kind = format_ident!("{}", to_upper_snake_case(&name.to_string()));
let kind = format_ident!("{}", to_upper_snake_case(node.name));
let traits = node.traits.iter().map(|trait_name| {
let trait_name = format_ident!("{}", trait_name);
quote!(impl ast::#trait_name for #name {})