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

Function peg$f99

packages/graph/src/grammar.js:1155–1161  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

1153 return { simpleLabels: [head, ...tail.map(t => t[3])] };
1154 }
1155 function peg$f99(expr) {
1156 // Single label or advanced expression
1157 if (expr.type === 'LabelName') {
1158 return { simpleLabels: [expr.name] };
1159 }
1160 return { simpleLabels: [], labelExpression: expr };
1161 }
1162 function peg$f100(head, tail) {
1163 return tail.reduce((left, [_1, _2, _3, right]) => ({
1164 type: 'LabelOr',

Callers 1

peg$parseNodeLabelsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected