diff options
Diffstat (limited to 'crates/libsyntax2/src/ast/generated.rs.tera')
-rw-r--r-- | crates/libsyntax2/src/ast/generated.rs.tera | 9 |
1 files changed, 2 insertions, 7 deletions
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> { | |||
58 | {%- set method_name = m.0 -%} | 58 | {%- set method_name = m.0 -%} |
59 | {%- set ChildName = m.1 %} | 59 | {%- set ChildName = m.1 %} |
60 | pub fn {{ method_name }}(self) -> impl Iterator<Item = {{ ChildName }}<'a>> + 'a { | 60 | pub fn {{ method_name }}(self) -> impl Iterator<Item = {{ ChildName }}<'a>> + 'a { |
61 | self.syntax() | 61 | super::children(self) |
62 | .children() | ||
63 | .filter_map({{ ChildName }}::cast) | ||
64 | } | 62 | } |
65 | {% endfor -%} | 63 | {% endfor -%} |
66 | {%- endif -%} | 64 | {%- endif -%} |
@@ -70,10 +68,7 @@ impl<'a> {{ node }}<'a> { | |||
70 | {%- set method_name = m.0 -%} | 68 | {%- set method_name = m.0 -%} |
71 | {%- set ChildName = m.1 %} | 69 | {%- set ChildName = m.1 %} |
72 | pub fn {{ method_name }}(self) -> Option<{{ ChildName }}<'a>> { | 70 | pub fn {{ method_name }}(self) -> Option<{{ ChildName }}<'a>> { |
73 | self.syntax() | 71 | super::child_opt(self) |
74 | .children() | ||
75 | .filter_map({{ ChildName }}::cast) | ||
76 | .next() | ||
77 | } | 72 | } |
78 | {% endfor -%} | 73 | {% endfor -%} |
79 | {%- endif -%} | 74 | {%- endif -%} |