MCPcopy Create free account
hub / github.com/diem/move / normalize

Method normalize

language/move-prover/bytecode/src/read_write_set_analysis.rs:834–844  ·  view source on GitHub ↗
(&self, env: &GlobalEnv)

Source from the content-addressed store, hash-verified

832
833impl 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
847impl AccessPath {

Callers

nothing calls this directly

Calls 15

FieldClass · 0.85
expectMethod · 0.80
into_struct_typeMethod · 0.80
struct_typeMethod · 0.80
add_access_pathMethod · 0.80
get_typeMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45
offsetsMethod · 0.45
rootMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected