MCPcopy Create free account
hub / github.com/cschanck/single-file-java / rollback

Method rollback

src/main/java/org/sfj/PegLegParser.java:310–313  ·  view source on GitHub ↗
(int frameCount, SingleNode<V> oldTop)

Source from the content-addressed store, hash-verified

308 private int nextChar() { return source.nextChar(); }
309
310 private void rollback(int frameCount, SingleNode<V> oldTop) {
311 trimFramesTo(frameCount);
312 restoreValues(oldTop);
313 }
314
315 public List<String> parseTrail() {
316 List<String> ret = frame.stream().filter(Objects::nonNull).map(s -> s.name).collect(toList());

Callers 3

innerTestMethod · 0.80
seqOfMethod · 0.80
firstOfMethod · 0.80

Calls 2

trimFramesToMethod · 0.95
restoreValuesMethod · 0.95

Tested by

no test coverage detected