Creates a new `PostOrder`.
()
| 51 | impl PostOrder { |
| 52 | /// Creates a new `PostOrder`. |
| 53 | pub fn new() -> Self { |
| 54 | PostOrder { |
| 55 | stack: vec![], |
| 56 | postorder: vec![], |
| 57 | po_number: SecondaryMap::new(), |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | /// Creates a new `PostOrder` for the given function. |
| 62 | pub fn for_function(func: &impl Function) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected