MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / cleanSpecifierList

Function cleanSpecifierList

src/resolution/import-resolver.ts:2173–2175  ·  view source on GitHub ↗

A captured `{ … }` list with its comments stripped (only when it has a `/` — most don't).

(list: string)

Source from the content-addressed store, hash-verified

2171
2172/** A captured `{ … }` list with its comments stripped (only when it has a `/` — most don't). */
2173function cleanSpecifierList(list: string): string {
2174 return list.includes('/') ? stripJsComments(list) : list;
2175}
2176
2177/** A multi-line JSDoc `@import { … }` list without its ` * ` line prefixes. */
2178function withoutJsDocPrefixes(list: string): string {

Callers 2

extractJSImportsFunction · 0.85
extractReExportsFunction · 0.85

Calls 1

stripJsCommentsFunction · 0.85

Tested by

no test coverage detected