MCPcopy Create free account
hub / github.com/davidkingzyb/SCAST / next

Function next

js/SCAST.js:208–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 return current || (current = read_next());//after next() not call peek()
207 }
208 function next() {
209 var tok = current;
210 if(current?.type=='id')prev_id=current;
211 current = null;
212 return tok || read_next();
213 }
214 function prev(){
215 return prev_id
216 }

Callers

nothing calls this directly

Calls 1

read_nextFunction · 0.70

Tested by

no test coverage detected