Return the number of sub-expressions in the tree (including self).
(&self)
| 2024 | |
| 2025 | /// Return the number of sub-expressions in the tree (including self). |
| 2026 | pub fn size(&self) -> usize { |
| 2027 | let mut size = 0; |
| 2028 | self.visit_pre(|_| size += 1); |
| 2029 | size |
| 2030 | } |
| 2031 | |
| 2032 | /// Given the ids and values of a LetRec, it computes the subset of ids that are used across |
| 2033 | /// iterations. These are those ids that have a reference before they are defined, when reading |