MCPcopy Create free account
hub / github.com/pegjs/pegjs / peg$parseImportToken

Function peg$parseImportToken

lib/parser.js:4202–4237  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4200 }
4201
4202 function peg$parseImportToken() {
4203 var s0, s1, s2, s3;
4204
4205 s0 = peg$currPos;
4206 if (input.substr(peg$currPos, 6) === peg$c204) {
4207 s1 = peg$c204;
4208 peg$currPos += 6;
4209 } else {
4210 s1 = peg$FAILED;
4211 if (peg$silentFails === 0) { peg$fail(peg$c205); }
4212 }
4213 if (s1 !== peg$FAILED) {
4214 s2 = peg$currPos;
4215 peg$silentFails++;
4216 s3 = peg$parseIdentifierPart();
4217 peg$silentFails--;
4218 if (s3 === peg$FAILED) {
4219 s2 = void 0;
4220 } else {
4221 peg$currPos = s2;
4222 s2 = peg$FAILED;
4223 }
4224 if (s2 !== peg$FAILED) {
4225 s1 = [s1, s2];
4226 s0 = s1;
4227 } else {
4228 peg$currPos = s0;
4229 s0 = peg$FAILED;
4230 }
4231 } else {
4232 peg$currPos = s0;
4233 s0 = peg$FAILED;
4234 }
4235
4236 return s0;
4237 }
4238
4239 function peg$parseInstanceofToken() {
4240 var s0, s1, s2, s3;

Callers 1

Calls 2

peg$failFunction · 0.85
peg$parseIdentifierPartFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…