We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e9fea82 + 0414b65 commit 163d9d3Copy full SHA for 163d9d3
crates/hir_def/src/item_tree.rs
@@ -196,13 +196,6 @@ impl ItemTree {
196
self.raw_attrs(of).clone().filter(db, krate)
197
}
198
199
- pub fn all_inner_items(&self) -> impl Iterator<Item = ModItem> + '_ {
200
- match &self.data {
201
- Some(data) => Some(data.inner_items.values().flatten().copied()).into_iter().flatten(),
202
- None => None.into_iter().flatten(),
203
- }
204
205
-
206
pub fn inner_items_of_block(&self, block: FileAstId<ast::BlockExpr>) -> &[ModItem] {
207
match &self.data {
208
Some(data) => data.inner_items.get(&block).map(|it| &**it).unwrap_or(&[]),
0 commit comments