From 69a524fbef067d9ee265fa93606c3ae743656c2a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 22 Aug 2018 17:01:51 +0300 Subject: dedupe --- crates/libsyntax2/src/ast/generated.rs.tera | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'crates/libsyntax2/src/ast/generated.rs.tera') diff --git a/crates/libsyntax2/src/ast/generated.rs.tera b/crates/libsyntax2/src/ast/generated.rs.tera index 0572cceaa..69f9236b7 100644 --- a/crates/libsyntax2/src/ast/generated.rs.tera +++ b/crates/libsyntax2/src/ast/generated.rs.tera @@ -58,9 +58,7 @@ impl<'a> {{ node }}<'a> { {%- set method_name = m.0 -%} {%- set ChildName = m.1 %} pub fn {{ method_name }}(self) -> impl Iterator> + 'a { - self.syntax() - .children() - .filter_map({{ ChildName }}::cast) + super::children(self) } {% endfor -%} {%- endif -%} @@ -70,10 +68,7 @@ impl<'a> {{ node }}<'a> { {%- set method_name = m.0 -%} {%- set ChildName = m.1 %} pub fn {{ method_name }}(self) -> Option<{{ ChildName }}<'a>> { - self.syntax() - .children() - .filter_map({{ ChildName }}::cast) - .next() + super::child_opt(self) } {% endfor -%} {%- endif -%} -- cgit v1.2.3