MCPcopy Index your code
hub / github.com/pegjs/pegjs / peg$parseCode

Function peg$parseCode

lib/parser.js:3122–3343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3120 }
3121
3122 function peg$parseCode() {
3123 var s0, s1, s2, s3, s4, s5;
3124
3125 s0 = peg$currPos;
3126 s1 = [];
3127 s2 = [];
3128 s3 = peg$currPos;
3129 s4 = peg$currPos;
3130 peg$silentFails++;
3131 if (peg$c142.test(input.charAt(peg$currPos))) {
3132 s5 = input.charAt(peg$currPos);
3133 peg$currPos++;
3134 } else {
3135 s5 = peg$FAILED;
3136 if (peg$silentFails === 0) { peg$fail(peg$c143); }
3137 }
3138 peg$silentFails--;
3139 if (s5 === peg$FAILED) {
3140 s4 = void 0;
3141 } else {
3142 peg$currPos = s4;
3143 s4 = peg$FAILED;
3144 }
3145 if (s4 !== peg$FAILED) {
3146 s5 = peg$parseSourceCharacter();
3147 if (s5 !== peg$FAILED) {
3148 s4 = [s4, s5];
3149 s3 = s4;
3150 } else {
3151 peg$currPos = s3;
3152 s3 = peg$FAILED;
3153 }
3154 } else {
3155 peg$currPos = s3;
3156 s3 = peg$FAILED;
3157 }
3158 if (s3 !== peg$FAILED) {
3159 while (s3 !== peg$FAILED) {
3160 s2.push(s3);
3161 s3 = peg$currPos;
3162 s4 = peg$currPos;
3163 peg$silentFails++;
3164 if (peg$c142.test(input.charAt(peg$currPos))) {
3165 s5 = input.charAt(peg$currPos);
3166 peg$currPos++;
3167 } else {
3168 s5 = peg$FAILED;
3169 if (peg$silentFails === 0) { peg$fail(peg$c143); }
3170 }
3171 peg$silentFails--;
3172 if (s5 === peg$FAILED) {
3173 s4 = void 0;
3174 } else {
3175 peg$currPos = s4;
3176 s4 = peg$FAILED;
3177 }
3178 if (s4 !== peg$FAILED) {
3179 s5 = peg$parseSourceCharacter();

Callers 1

peg$parseCodeBlockFunction · 0.85

Calls 2

peg$failFunction · 0.85
peg$parseSourceCharacterFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…