MCPcopy Create free account
hub / github.com/codemix/graph / getEdges

Function getEdges

packages/graph/src/test/backtickIdentifiers.test.ts:27–29  ·  view source on GitHub ↗
(pattern: Pattern)

Source from the content-addressed store, hash-verified

25
26// Helper to extract edges from a Pattern
27function getEdges(pattern: Pattern): EdgePattern[] {
28 return pattern.elements.filter((e): e is EdgePattern => e.type === "EdgePattern");
29}
30
31describe("Backtick-quoted identifier grammar parsing", () => {
32 describe("Variable identifiers", () => {

Callers 1

Calls 1

filterMethod · 0.80

Tested by

no test coverage detected