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

Function processDecoratedSymbol

src/processTargets/processMark.ts:133–152  ·  view source on GitHub ↗
(
  context: ProcessedTargetsContext,
  mark: DecoratedSymbol
)

Source from the content-addressed store, hash-verified

131}
132
133function processDecoratedSymbol(
134 context: ProcessedTargetsContext,
135 mark: DecoratedSymbol
136) {
137 const token = context.hatTokenMap.getToken(
138 mark.symbolColor,
139 mark.character
140 );
141 if (token == null) {
142 throw new Error(
143 `Couldn't find mark ${mark.symbolColor} '${mark.character}'`
144 );
145 }
146 return [
147 {
148 selection: new Selection(token.range.start, token.range.end),
149 editor: token.editor,
150 },
151 ];
152}
153
154function processLineNumber(context: ProcessedTargetsContext, mark: LineNumber) {
155 const editor = context.currentEditor!;

Callers 1

processMark.tsFile · 0.85

Calls 1

getTokenMethod · 0.65

Tested by

no test coverage detected