aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/src/ast/generated.rs.tera
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-22 15:01:51 +0100
committerAleksey Kladov <[email protected]>2018-08-22 15:01:51 +0100
commit69a524fbef067d9ee265fa93606c3ae743656c2a (patch)
treea575a4f1d094bb7410cc95bdd113b3d7fe1eba3a /crates/libsyntax2/src/ast/generated.rs.tera
parent8e3bec11ebd1fce78701670cf9189b5a9d0d68f8 (diff)
dedupe
Diffstat (limited to 'crates/libsyntax2/src/ast/generated.rs.tera')
-rw-r--r--crates/libsyntax2/src/ast/generated.rs.tera9
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 -%}