MCPcopy Create free account
hub / github.com/codemix/htmling / peg$parseAccessor

Function peg$parseAccessor

lib/parser.js:5579–5654  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5577 }
5578
5579 function peg$parseAccessor() {
5580 var s0, s1, s2, s3, s4, s5;
5581
5582 s0 = peg$currPos;
5583 if (input.charCodeAt(peg$currPos) === 46) {
5584 s1 = peg$c162;
5585 peg$currPos++;
5586 } else {
5587 s1 = peg$FAILED;
5588 if (peg$silentFails === 0) { peg$fail(peg$c163); }
5589 }
5590 if (s1 !== peg$FAILED) {
5591 s2 = peg$parseIdentifier();
5592 if (s2 !== peg$FAILED) {
5593 peg$reportedPos = s0;
5594 s1 = peg$c222(s2);
5595 s0 = s1;
5596 } else {
5597 peg$currPos = s0;
5598 s0 = peg$c3;
5599 }
5600 } else {
5601 peg$currPos = s0;
5602 s0 = peg$c3;
5603 }
5604 if (s0 === peg$FAILED) {
5605 s0 = peg$currPos;
5606 if (input.charCodeAt(peg$currPos) === 91) {
5607 s1 = peg$c223;
5608 peg$currPos++;
5609 } else {
5610 s1 = peg$FAILED;
5611 if (peg$silentFails === 0) { peg$fail(peg$c224); }
5612 }
5613 if (s1 !== peg$FAILED) {
5614 s2 = peg$parse_();
5615 if (s2 !== peg$FAILED) {
5616 s3 = peg$parseIterateExpression();
5617 if (s3 !== peg$FAILED) {
5618 s4 = peg$parse_();
5619 if (s4 !== peg$FAILED) {
5620 if (input.charCodeAt(peg$currPos) === 93) {
5621 s5 = peg$c225;
5622 peg$currPos++;
5623 } else {
5624 s5 = peg$FAILED;
5625 if (peg$silentFails === 0) { peg$fail(peg$c226); }
5626 }
5627 if (s5 !== peg$FAILED) {
5628 peg$reportedPos = s0;
5629 s1 = peg$c227(s3);
5630 s0 = s1;
5631 } else {
5632 peg$currPos = s0;
5633 s0 = peg$c3;
5634 }
5635 } else {
5636 peg$currPos = s0;

Callers 1

Calls 6

peg$failFunction · 0.85
peg$parseIdentifierFunction · 0.85
peg$c222Function · 0.85
peg$parse_Function · 0.85
peg$c227Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…