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

Function peg$parseImportToken

lib/parser.js:6973–7008  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6971 }
6972
6973 function peg$parseImportToken() {
6974 var s0, s1, s2, s3;
6975
6976 s0 = peg$currPos;
6977 if (input.substr(peg$currPos, 6) === peg$c296) {
6978 s1 = peg$c296;
6979 peg$currPos += 6;
6980 } else {
6981 s1 = peg$FAILED;
6982 if (peg$silentFails === 0) { peg$fail(peg$c297); }
6983 }
6984 if (s1 !== peg$FAILED) {
6985 s2 = peg$currPos;
6986 peg$silentFails++;
6987 s3 = peg$parseIdentifierPart();
6988 peg$silentFails--;
6989 if (s3 === peg$FAILED) {
6990 s2 = peg$c5;
6991 } else {
6992 peg$currPos = s2;
6993 s2 = peg$c3;
6994 }
6995 if (s2 !== peg$FAILED) {
6996 s1 = [s1, s2];
6997 s0 = s1;
6998 } else {
6999 peg$currPos = s0;
7000 s0 = peg$c3;
7001 }
7002 } else {
7003 peg$currPos = s0;
7004 s0 = peg$c3;
7005 }
7006
7007 return s0;
7008 }
7009
7010 function peg$parseInstanceofToken() {
7011 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…