MCPcopy Create free account
hub / github.com/estools/esquery / peg$parsefield

Function peg$parsefield

parser.js:2098–2187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2096 }
2097
2098 function peg$parsefield() {
2099 var s0, s1, s2, s3, s4, s5, s6;
2100
2101 var key = peg$currPos * 32 + 23,
2102 cached = peg$resultsCache[key];
2103
2104 if (cached) {
2105 peg$currPos = cached.nextPos;
2106
2107 return cached.result;
2108 }
2109
2110 s0 = peg$currPos;
2111 if (input.charCodeAt(peg$currPos) === 46) {
2112 s1 = peg$c43;
2113 peg$currPos++;
2114 } else {
2115 s1 = peg$FAILED;
2116 if (peg$silentFails === 0) { peg$fail(peg$c44); }
2117 }
2118 if (s1 !== peg$FAILED) {
2119 s2 = peg$parseidentifierName();
2120 if (s2 !== peg$FAILED) {
2121 s3 = [];
2122 s4 = peg$currPos;
2123 if (input.charCodeAt(peg$currPos) === 46) {
2124 s5 = peg$c43;
2125 peg$currPos++;
2126 } else {
2127 s5 = peg$FAILED;
2128 if (peg$silentFails === 0) { peg$fail(peg$c44); }
2129 }
2130 if (s5 !== peg$FAILED) {
2131 s6 = peg$parseidentifierName();
2132 if (s6 !== peg$FAILED) {
2133 s5 = [s5, s6];
2134 s4 = s5;
2135 } else {
2136 peg$currPos = s4;
2137 s4 = peg$FAILED;
2138 }
2139 } else {
2140 peg$currPos = s4;
2141 s4 = peg$FAILED;
2142 }
2143 while (s4 !== peg$FAILED) {
2144 s3.push(s4);
2145 s4 = peg$currPos;
2146 if (input.charCodeAt(peg$currPos) === 46) {
2147 s5 = peg$c43;
2148 peg$currPos++;
2149 } else {
2150 s5 = peg$FAILED;
2151 if (peg$silentFails === 0) { peg$fail(peg$c44); }
2152 }
2153 if (s5 !== peg$FAILED) {
2154 s6 = peg$parseidentifierName();
2155 if (s6 !== peg$FAILED) {

Callers 1

peg$parseatomFunction · 0.85

Calls 3

peg$failFunction · 0.85
peg$parseidentifierNameFunction · 0.85
peg$c79Function · 0.85

Tested by

no test coverage detected