MCPcopy Create free account
hub / github.com/cursorless-dev/cursorless / leadingMatcher

Function leadingMatcher

src/util/nodeMatchers.ts:110–118  ·  view source on GitHub ↗
(
  patterns: string[],
  delimiters: string[] = []
)

Source from the content-addressed store, hash-verified

108 * @returns A node matcher
109 */
110export function leadingMatcher(
111 patterns: string[],
112 delimiters: string[] = []
113): NodeMatcher {
114 return matcher(
115 patternFinder(...patterns),
116 selectWithLeadingDelimiter(...delimiters)
117 );
118}
119
120/**
121 * Given `patterns`, creates a node matcher that will add trailing delimiter to

Callers 6

html.tsFile · 0.90
java.tsFile · 0.90
scala.tsFile · 0.90
cpp.tsFile · 0.90
json.tsFile · 0.90
python.tsFile · 0.90

Calls 3

patternFinderFunction · 0.90
matcherFunction · 0.85

Tested by

no test coverage detected