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

Function peg$parseATTRIBUTES

lib/parser.js:2549–2613  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2547 }
2548
2549 function peg$parseATTRIBUTES() {
2550 var s0, s1, s2, s3, s4, s5;
2551
2552 peg$silentFails++;
2553 s0 = peg$currPos;
2554 s1 = peg$parse_();
2555 if (s1 !== peg$FAILED) {
2556 s2 = [];
2557 s3 = peg$currPos;
2558 s4 = peg$parseATTRIBUTE();
2559 if (s4 !== peg$FAILED) {
2560 s5 = peg$parse_();
2561 if (s5 !== peg$FAILED) {
2562 s4 = [s4, s5];
2563 s3 = s4;
2564 } else {
2565 peg$currPos = s3;
2566 s3 = peg$c3;
2567 }
2568 } else {
2569 peg$currPos = s3;
2570 s3 = peg$c3;
2571 }
2572 if (s3 !== peg$FAILED) {
2573 while (s3 !== peg$FAILED) {
2574 s2.push(s3);
2575 s3 = peg$currPos;
2576 s4 = peg$parseATTRIBUTE();
2577 if (s4 !== peg$FAILED) {
2578 s5 = peg$parse_();
2579 if (s5 !== peg$FAILED) {
2580 s4 = [s4, s5];
2581 s3 = s4;
2582 } else {
2583 peg$currPos = s3;
2584 s3 = peg$c3;
2585 }
2586 } else {
2587 peg$currPos = s3;
2588 s3 = peg$c3;
2589 }
2590 }
2591 } else {
2592 s2 = peg$c3;
2593 }
2594 if (s2 !== peg$FAILED) {
2595 peg$reportedPos = s0;
2596 s1 = peg$c62(s2);
2597 s0 = s1;
2598 } else {
2599 peg$currPos = s0;
2600 s0 = peg$c3;
2601 }
2602 } else {
2603 peg$currPos = s0;
2604 s0 = peg$c3;
2605 }
2606 peg$silentFails--;

Callers 4

peg$parseCUSTOM_ELEMENTFunction · 0.85
peg$parseCONTENT_ELEMENTFunction · 0.85
peg$parseINCLUDE_ELEMENTFunction · 0.85

Calls 4

peg$parse_Function · 0.85
peg$parseATTRIBUTEFunction · 0.85
peg$c62Function · 0.85
peg$failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…