MCPcopy Create free account
hub / github.com/codemix/graph / peg$parsePropertyValue

Function peg$parsePropertyValue

packages/graph/src/grammar.js:6960–7054  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6958 }
6959
6960 function peg$parsePropertyValue() {
6961 let s0, s1, s2, s3, s4, s5;
6962
6963 s0 = peg$parseParameterRef();
6964 if (s0 === peg$FAILED) {
6965 s0 = peg$parseNestedPropertyMap();
6966 if (s0 === peg$FAILED) {
6967 s0 = peg$parsePropertyListLiteral();
6968 if (s0 === peg$FAILED) {
6969 s0 = peg$currPos;
6970 s1 = peg$parseExpressionIdentifier();
6971 if (s1 !== peg$FAILED) {
6972 if (input.charCodeAt(peg$currPos) === 46) {
6973 s2 = peg$c2;
6974 peg$currPos++;
6975 } else {
6976 s2 = peg$FAILED;
6977 if (peg$silentFails === 0) { peg$fail(peg$e2); }
6978 }
6979 if (s2 !== peg$FAILED) {
6980 s3 = peg$parsePropertyIdentifier();
6981 if (s3 !== peg$FAILED) {
6982 peg$savedPos = s0;
6983 s0 = peg$f108(s1, s3);
6984 } else {
6985 peg$currPos = s0;
6986 s0 = peg$FAILED;
6987 }
6988 } else {
6989 peg$currPos = s0;
6990 s0 = peg$FAILED;
6991 }
6992 } else {
6993 peg$currPos = s0;
6994 s0 = peg$FAILED;
6995 }
6996 if (s0 === peg$FAILED) {
6997 s0 = peg$parseLiteral();
6998 if (s0 === peg$FAILED) {
6999 s0 = peg$currPos;
7000 s1 = peg$parseExpressionIdentifier();
7001 if (s1 !== peg$FAILED) {
7002 s2 = peg$currPos;
7003 peg$silentFails++;
7004 if (input.charCodeAt(peg$currPos) === 40) {
7005 s3 = peg$c4;
7006 peg$currPos++;
7007 } else {
7008 s3 = peg$FAILED;
7009 if (peg$silentFails === 0) { peg$fail(peg$e4); }
7010 }
7011 if (s3 === peg$FAILED) {
7012 s3 = peg$currPos;
7013 s4 = peg$parse_();
7014 if (input.charCodeAt(peg$currPos) === 46) {
7015 s5 = peg$c2;
7016 peg$currPos++;
7017 } else {

Callers 1

peg$parsePropertyEntryFunction · 0.85

Calls 10

peg$parseParameterRefFunction · 0.85
peg$failFunction · 0.85
peg$f108Function · 0.85
peg$parseLiteralFunction · 0.85
peg$parse_Function · 0.85
peg$f109Function · 0.85

Tested by

no test coverage detected