Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
15
interface
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
genericPrintNoParens
Function · 0.80
swapQuotes
Function · 0.80
jsSafeStringify
Function · 0.80
patcher.ts
File · 0.80
getReprinter
Function · 0.80
runTestsForParser
Function · 0.80
visit.ts
File · 0.80
mapping.ts
File · 0.80
stripConsole
Function · 0.80
babel.ts
File · 0.80
printer.ts
File · 0.80
replaceIdWithNodeId
Function · 0.80
Calls
no outgoing calls
Tested by
1
test
Function · 0.64