MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / add_offset

Method add_offset

cel/src/common/ast/mod.rs:164–166  ·  view source on GitHub ↗
(&mut self, id: u64, start: u32, stop: u32)

Source from the content-addressed store, hash-verified

162
163impl SourceInfo {
164 pub fn add_offset(&mut self, id: u64, start: u32, stop: u32) {
165 self.offsets.insert(id, OffsetRange { start, stop });
166 }
167
168 pub fn offset_for(&self, id: u64) -> Option<(u32, u32)> {
169 self.offsets.get(&id).map(|range| (range.start, range.stop))

Callers 2

next_idMethod · 0.80
next_id_forMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected