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

Method wsRule

src/main/java/org/sfj/PegLegParser.java:502–506  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

500 private RuleReturn<V> eolRule() { return innerStr("eol()", lineSep).rule(); }
501
502 private RuleReturn<V> wsRule() {
503 get().pushFrame("ws()");
504 consumeWS();
505 return get().ruleReturn(true, true);
506 }
507
508 private void consumeWS() {
509 for (; ; get().nextChar()) { if (!get().peekOneOf(whiteSpace)) { return; } }

Callers

nothing calls this directly

Calls 4

getMethod · 0.95
consumeWSMethod · 0.95
pushFrameMethod · 0.80
ruleReturnMethod · 0.80

Tested by

no test coverage detected