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

Function peg$parseMemberExpression

lib/parser.js:5532–5577  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5530 }
5531
5532 function peg$parseMemberExpression() {
5533 var s0, s1, s2, s3;
5534
5535 s0 = peg$currPos;
5536 s1 = peg$parseMarkedIdentifier();
5537 if (s1 !== peg$FAILED) {
5538 s2 = [];
5539 s3 = peg$parseAccessor();
5540 if (s3 !== peg$FAILED) {
5541 while (s3 !== peg$FAILED) {
5542 s2.push(s3);
5543 s3 = peg$parseAccessor();
5544 }
5545 } else {
5546 s2 = peg$c3;
5547 }
5548 if (s2 !== peg$FAILED) {
5549 peg$reportedPos = s0;
5550 s1 = peg$c221(s1, s2);
5551 s0 = s1;
5552 } else {
5553 peg$currPos = s0;
5554 s0 = peg$c3;
5555 }
5556 } else {
5557 peg$currPos = s0;
5558 s0 = peg$c3;
5559 }
5560 if (s0 === peg$FAILED) {
5561 s0 = peg$parseMarkedIdentifier();
5562 if (s0 === peg$FAILED) {
5563 s0 = peg$parseLiteral();
5564 if (s0 === peg$FAILED) {
5565 s0 = peg$parseArrayExpression();
5566 if (s0 === peg$FAILED) {
5567 s0 = peg$parseObjectExpression();
5568 if (s0 === peg$FAILED) {
5569 s0 = peg$parseSequenceExpression();
5570 }
5571 }
5572 }
5573 }
5574 }
5575
5576 return s0;
5577 }
5578
5579 function peg$parseAccessor() {
5580 var s0, s1, s2, s3, s4, s5;

Callers 1

peg$parseUnaryExpressionFunction · 0.85

Calls 7

peg$parseAccessorFunction · 0.85
peg$c221Function · 0.85
peg$parseLiteralFunction · 0.85
peg$parseArrayExpressionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…