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

Function peg$parseIdentifierName

lib/parser.js:1869–1901  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1867 }
1868
1869 function peg$parseIdentifierName() {
1870 var s0, s1, s2, s3;
1871
1872 peg$silentFails++;
1873 s0 = peg$currPos;
1874 s1 = peg$parseIdentifierStart();
1875 if (s1 !== peg$FAILED) {
1876 s2 = [];
1877 s3 = peg$parseIdentifierPart();
1878 while (s3 !== peg$FAILED) {
1879 s2.push(s3);
1880 s3 = peg$parseIdentifierPart();
1881 }
1882 if (s2 !== peg$FAILED) {
1883 peg$savedPos = s0;
1884 s1 = peg$c70(s1, s2);
1885 s0 = s1;
1886 } else {
1887 peg$currPos = s0;
1888 s0 = peg$FAILED;
1889 }
1890 } else {
1891 peg$currPos = s0;
1892 s0 = peg$FAILED;
1893 }
1894 peg$silentFails--;
1895 if (s0 === peg$FAILED) {
1896 s1 = peg$FAILED;
1897 if (peg$silentFails === 0) { peg$fail(peg$c69); }
1898 }
1899
1900 return s0;
1901 }
1902
1903 function peg$parseIdentifierStart() {
1904 var s0, s1, s2;

Callers 3

peg$parseRuleFunction · 0.85
peg$parseIdentifierFunction · 0.85

Calls 4

peg$parseIdentifierStartFunction · 0.85
peg$parseIdentifierPartFunction · 0.85
peg$c70Function · 0.85
peg$failFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…