diff options
Diffstat (limited to 'crates/ra_syntax/src/ast.rs')
-rw-r--r-- | crates/ra_syntax/src/ast.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/ast.rs b/crates/ra_syntax/src/ast.rs index 1437a38c9..99c6b7219 100644 --- a/crates/ra_syntax/src/ast.rs +++ b/crates/ra_syntax/src/ast.rs | |||
@@ -90,7 +90,7 @@ mod support { | |||
90 | AstChildren::new(parent) | 90 | AstChildren::new(parent) |
91 | } | 91 | } |
92 | 92 | ||
93 | pub(super) fn token2(parent: &SyntaxNode, kind: SyntaxKind) -> Option<SyntaxToken> { | 93 | pub(super) fn token(parent: &SyntaxNode, kind: SyntaxKind) -> Option<SyntaxToken> { |
94 | parent.children_with_tokens().filter_map(|it| it.into_token()).find(|it| it.kind() == kind) | 94 | parent.children_with_tokens().filter_map(|it| it.into_token()).find(|it| it.kind() == kind) |
95 | } | 95 | } |
96 | } | 96 | } |