MCPcopy Index your code
hub / github.com/RubyLouvre/anu / parseAlternative

Function parseAlternative

test/babel.js:58158–58175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58156 }
58157
58158 function parseAlternative() {
58159 var res = [],
58160 from = pos;
58161 var term;
58162
58163 // Alternative ::
58164 // [empty]
58165 // Alternative Term
58166 while (term = parseTerm()) {
58167 res.push(term);
58168 }
58169
58170 if (res.length === 1) {
58171 return res[0];
58172 }
58173
58174 return createAlternative(res, from, pos);
58175 }
58176
58177 function parseTerm() {
58178 // Term ::

Callers 1

parseDisjunctionFunction · 0.85

Calls 2

parseTermFunction · 0.85
createAlternativeFunction · 0.85

Tested by

no test coverage detected