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

Function peg$parseFunctionToken

lib/parser.js:6899–6934  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6897 }
6898
6899 function peg$parseFunctionToken() {
6900 var s0, s1, s2, s3;
6901
6902 s0 = peg$currPos;
6903 if (input.substr(peg$currPos, 8) === peg$c292) {
6904 s1 = peg$c292;
6905 peg$currPos += 8;
6906 } else {
6907 s1 = peg$FAILED;
6908 if (peg$silentFails === 0) { peg$fail(peg$c293); }
6909 }
6910 if (s1 !== peg$FAILED) {
6911 s2 = peg$currPos;
6912 peg$silentFails++;
6913 s3 = peg$parseIdentifierPart();
6914 peg$silentFails--;
6915 if (s3 === peg$FAILED) {
6916 s2 = peg$c5;
6917 } else {
6918 peg$currPos = s2;
6919 s2 = peg$c3;
6920 }
6921 if (s2 !== peg$FAILED) {
6922 s1 = [s1, s2];
6923 s0 = s1;
6924 } else {
6925 peg$currPos = s0;
6926 s0 = peg$c3;
6927 }
6928 } else {
6929 peg$currPos = s0;
6930 s0 = peg$c3;
6931 }
6932
6933 return s0;
6934 }
6935
6936 function peg$parseIfToken() {
6937 var s0, s1, s2, s3;

Callers 1

peg$parseKeywordFunction · 0.85

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…