MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / doBracketsMatch

Function doBracketsMatch

src/selection.ts:99–102  ·  view source on GitHub ↗
(a: string, b: string)

Source from the content-addressed store, hash-verified

97}
98
99function doBracketsMatch(a: string, b: string): boolean {
100 const matches = new Map(Object.entries({ '(': ')', '[': ']', '{': '}', ')': '(', ']': '[', '}': '{' }));
101 return matches.get(a) === b;
102}
103
104function isBracket(c: string, lookingForward: boolean) {
105 if (lookingForward) {

Callers 1

extendSelectionFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected