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

Function argumentSelectionExtractor

src/util/nodeSelectors.ts:79–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77}
78
79export function argumentSelectionExtractor(): SelectionExtractor {
80 return delimitedSelector(
81 (node) =>
82 node.type === "," ||
83 node.type === "(" ||
84 node.type === ")" ||
85 node.type === "[" ||
86 node.type === "]" ||
87 node.type === "}" ||
88 node.type === "{",
89 ", "
90 );
91}
92
93export function unwrapSelectionExtractor(
94 editor: TextEditor,

Callers 1

argumentMatcherFunction · 0.90

Calls 1

delimitedSelectorFunction · 0.85

Tested by

no test coverage detected