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

Function argumentMatcher

src/util/nodeMatchers.ts:79–84  ·  view source on GitHub ↗
(...parentTypes: string[])

Source from the content-addressed store, hash-verified

77}
78
79export function argumentMatcher(...parentTypes: string[]): NodeMatcher {
80 return matcher(
81 argumentNodeFinder(...parentTypes),
82 argumentSelectionExtractor()
83 );
84}
85
86export function conditionMatcher(...patterns: string[]): NodeMatcher {
87 return matcher(patternFinder(...patterns), conditionSelectionExtractor);

Callers 7

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

Calls 3

argumentNodeFinderFunction · 0.90
matcherFunction · 0.85

Tested by

no test coverage detected