MCPcopy
hub / github.com/benjamn/recast / replace

Method replace

lib/patcher.ts:16–16  ·  view source on GitHub ↗
(loc: any, lines: any)

Source from the content-addressed store, hash-verified

14
15interface PatcherType {
16 replace(loc: any, lines: any): any;
17 get(loc?: any): any;
18 tryToReprintComments(newNode: any, oldNode: any, print: any): any;
19 deleteComments(node: any): any;

Callers 15

genericPrintNoParensFunction · 0.80
swapQuotesFunction · 0.80
jsSafeStringifyFunction · 0.80
patcher.tsFile · 0.80
getReprinterFunction · 0.80
runTestsForParserFunction · 0.80
visit.tsFile · 0.80
mapping.tsFile · 0.80
stripConsoleFunction · 0.80
babel.tsFile · 0.80
printer.tsFile · 0.80
replaceIdWithNodeIdFunction · 0.80

Calls

no outgoing calls

Tested by 1

testFunction · 0.64