(&self, env: &GlobalEnv)
| 832 | |
| 833 | impl Offset { |
| 834 | pub fn normalize(&self, env: &GlobalEnv) -> RWOffset { |
| 835 | match self { |
| 836 | Offset::Field(idx) => RWOffset::Field(*idx), |
| 837 | Offset::VectorIndex => RWOffset::VectorIndex, |
| 838 | Offset::Global(s) => RWOffset::Global( |
| 839 | s.get_type() |
| 840 | .into_struct_type(env) |
| 841 | .expect("Failed to normalize type"), |
| 842 | ), |
| 843 | } |
| 844 | } |
| 845 | } |
| 846 | |
| 847 | impl AccessPath { |
nothing calls this directly
no test coverage detected