MCPcopy Index your code
hub / github.com/cursorless-dev/cursorless / conditionMatcher

Function conditionMatcher

src/util/nodeMatchers.ts:86–88  ·  view source on GitHub ↗
(...patterns: string[])

Source from the content-addressed store, hash-verified

84}
85
86export function conditionMatcher(...patterns: string[]): NodeMatcher {
87 return matcher(patternFinder(...patterns), conditionSelectionExtractor);
88}
89/**
90 * Given `patterns`, creates a node matcher that selects the named child
91 * at the specified index of the pattern matched node.

Callers 5

java.tsFile · 0.90
scala.tsFile · 0.90
typescript.tsFile · 0.90
go.tsFile · 0.90
python.tsFile · 0.90

Calls 2

patternFinderFunction · 0.90
matcherFunction · 0.85

Tested by

no test coverage detected