Collect variable names referenced by `compact('var1', 'var2', …)` calls. These variables are used by string name and should be considered defined.
(statements: &[Statement<'_>])
| 992 | /// calls. These variables are used by string name and should be |
| 993 | /// considered defined. |
| 994 | pub(crate) fn collect_compact_vars(statements: &[Statement<'_>]) -> HashSet<String> { |
| 995 | let mut vars = HashSet::new(); |
| 996 | for stmt in statements { |
| 997 | collect_compact_from_stmt(stmt, &mut vars); |
| 998 | } |
| 999 | vars |
| 1000 | } |
| 1001 | |
| 1002 | fn collect_compact_from_stmt(stmt: &Statement<'_>, vars: &mut HashSet<String>) { |
| 1003 | match stmt { |
no test coverage detected