]> git.lizzy.rs Git - rust.git/commit
Merge #7699
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>
Wed, 17 Feb 2021 13:45:27 +0000 (13:45 +0000)
committerGitHub <noreply@github.com>
Wed, 17 Feb 2021 13:45:27 +0000 (13:45 +0000)
commit4054525c418085db4ceb2df70475a1ac9c019aff
tree64adbc8c62df3a6ebbe8c1a799589a94ddfbf490
parent056601b41fbc5208cae5d996ec7fd18526d79e41
parente1dbf43cf85f84c3a7e40f9731fc1f7ac96f8979
Merge #7699

7699: Implement ast::AstNode for NameLike and move it to node_ext r=matklad a=Veykril

With this `search`(and 2 other modules) don't necessarily go through 3 calls of `find_node_at_offset_with_descend` to find the correct node. Also makes the code that searches for NameLikes a bit easier on the eyes imo, though that can be fixed with just a helper function as well so its not that relevant.

Co-authored-by: Lukas Wirth <lukastw97@gmail.com>