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

Function peg$parseCodeBlock

lib/parser.js:3075–3120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3073 }
3074
3075 function peg$parseCodeBlock() {
3076 var s0, s1, s2, s3;
3077
3078 peg$silentFails++;
3079 s0 = peg$currPos;
3080 if (input.charCodeAt(peg$currPos) === 123) {
3081 s1 = peg$c137;
3082 peg$currPos++;
3083 } else {
3084 s1 = peg$FAILED;
3085 if (peg$silentFails === 0) { peg$fail(peg$c138); }
3086 }
3087 if (s1 !== peg$FAILED) {
3088 s2 = peg$parseCode();
3089 if (s2 !== peg$FAILED) {
3090 if (input.charCodeAt(peg$currPos) === 125) {
3091 s3 = peg$c139;
3092 peg$currPos++;
3093 } else {
3094 s3 = peg$FAILED;
3095 if (peg$silentFails === 0) { peg$fail(peg$c140); }
3096 }
3097 if (s3 !== peg$FAILED) {
3098 peg$savedPos = s0;
3099 s1 = peg$c141(s2);
3100 s0 = s1;
3101 } else {
3102 peg$currPos = s0;
3103 s0 = peg$FAILED;
3104 }
3105 } else {
3106 peg$currPos = s0;
3107 s0 = peg$FAILED;
3108 }
3109 } else {
3110 peg$currPos = s0;
3111 s0 = peg$FAILED;
3112 }
3113 peg$silentFails--;
3114 if (s0 === peg$FAILED) {
3115 s1 = peg$FAILED;
3116 if (peg$silentFails === 0) { peg$fail(peg$c136); }
3117 }
3118
3119 return s0;
3120 }
3121
3122 function peg$parseCode() {
3123 var s0, s1, s2, s3, s4, s5;

Callers 3

peg$parseInitializerFunction · 0.85

Calls 3

peg$failFunction · 0.85
peg$parseCodeFunction · 0.85
peg$c141Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…