Creates a new bytecode attribute id with default location.
(&mut self)
| 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 { |