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

Method new_attr

language/move-prover/bytecode/src/function_data_builder.rs:129–134  ·  view source on GitHub ↗

Creates a new bytecode attribute id with default location.

(&mut self)

Source from the content-addressed store, hash-verified

127
128 /// Creates a new bytecode attribute id with default location.
129 pub fn new_attr(&mut self) -> AttrId {
130 let id = AttrId::new(self.next_free_attr_index);
131 self.next_free_attr_index += 1;
132 self.data.locations.insert(id, self.current_loc.clone());
133 id
134 }
135
136 /// Creates a new branching label for bytecode.
137 pub fn new_label(&mut self) -> Label {

Callers 1

emit_withMethod · 0.80

Calls 2

insertMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected