()
| 1907 | /// Extract head constant KId from expression or app spine. |
| 1908 | fn head_const_id<M: KernelMode>(e: &KExpr<M>) -> Option<KId<M>> { |
| 1909 | match e.data() { |
| 1910 | ExprData::Const(id, _, _) => Some(id.clone()), |
| 1911 | ExprData::App(..) => { |
| 1912 | let head = app_head(e); |
| 1913 | match head.data() { |
| 1914 | ExprData::Const(id, _, _) => Some(id.clone()), |
| 1915 | _ => None, |
| 1916 | } |
| 1917 | }, |
| 1918 | _ => None, |
nothing calls this directly
no test coverage detected