MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / leaves

Method leaves

atomic-core/src/change/format_v3/semantic/predictive/encode.rs:100–113  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

98 Ok(())
99 }
100 fn leaves(&mut self) -> FormatResult<()> {
101 for _ in 0..self.count(TOKENS)? {
102 match self.n(LEAF)? {
103 0 => {
104 self.flag(LEAF_AFTER)?;
105 self.bytes(true)?;
106 }
107 1 | 3 => {}
108 2 => self.bytes(false)?,
109 _ => return Err(invalid("unknown predictive leaf operation")),
110 }
111 }
112 Ok(())
113 }
114 fn run(&mut self) -> FormatResult<()> {
115 for _ in 0..self.count(FILES)? {
116 for _ in 0..self.count(LINES)? {

Callers 1

runMethod · 0.45

Calls 5

invalidFunction · 0.50
countMethod · 0.45
nMethod · 0.45
flagMethod · 0.45
bytesMethod · 0.45

Tested by

no test coverage detected