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

Function peg$parseIdentifier

lib/parser.js:1837–1867  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1835 }
1836
1837 function peg$parseIdentifier() {
1838 var s0, s1, s2;
1839
1840 s0 = peg$currPos;
1841 s1 = peg$currPos;
1842 peg$silentFails++;
1843 s2 = peg$parseReservedWord();
1844 peg$silentFails--;
1845 if (s2 === peg$FAILED) {
1846 s1 = void 0;
1847 } else {
1848 peg$currPos = s1;
1849 s1 = peg$FAILED;
1850 }
1851 if (s1 !== peg$FAILED) {
1852 s2 = peg$parseIdentifierName();
1853 if (s2 !== peg$FAILED) {
1854 peg$savedPos = s0;
1855 s1 = peg$c68(s2);
1856 s0 = s1;
1857 } else {
1858 peg$currPos = s0;
1859 s0 = peg$FAILED;
1860 }
1861 } else {
1862 peg$currPos = s0;
1863 s0 = peg$FAILED;
1864 }
1865
1866 return s0;
1867 }
1868
1869 function peg$parseIdentifierName() {
1870 var s0, s1, s2, s3;

Callers 1

Calls 3

peg$parseReservedWordFunction · 0.85
peg$parseIdentifierNameFunction · 0.85
peg$c68Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…