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

Function peg$parseIdentifier

lib/parser.js:3446–3476  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3444 }
3445
3446 function peg$parseIdentifier() {
3447 var s0, s1, s2;
3448
3449 s0 = peg$currPos;
3450 s1 = peg$currPos;
3451 peg$silentFails++;
3452 s2 = peg$parseReservedWord();
3453 peg$silentFails--;
3454 if (s2 === peg$FAILED) {
3455 s1 = peg$c5;
3456 } else {
3457 peg$currPos = s1;
3458 s1 = peg$c3;
3459 }
3460 if (s1 !== peg$FAILED) {
3461 s2 = peg$parseIdentifierName();
3462 if (s2 !== peg$FAILED) {
3463 peg$reportedPos = s0;
3464 s1 = peg$c113(s2);
3465 s0 = s1;
3466 } else {
3467 peg$currPos = s0;
3468 s0 = peg$c3;
3469 }
3470 } else {
3471 peg$currPos = s0;
3472 s0 = peg$c3;
3473 }
3474
3475 return s0;
3476 }
3477
3478 function peg$parseMarkedIdentifier() {
3479 var s0, s1, s2;

Callers 5

peg$parseAliasExpressionFunction · 0.85
peg$parseCallExpressionFunction · 0.85
peg$parseAccessorFunction · 0.85
peg$parsePropertyFunction · 0.85

Calls 3

peg$parseReservedWordFunction · 0.85
peg$parseIdentifierNameFunction · 0.85
peg$c113Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…