MCPcopy Index your code
hub / github.com/glideapps/quicktype / modifySource

Function modifySource

src/Source.ts:113–119  ·  view source on GitHub ↗
(modifier: (serialized: string) => string, sl: Sourcelike)

Source from the content-addressed store, hash-verified

111}
112
113export function modifySource(modifier: (serialized: string) => string, sl: Sourcelike): Sourcelike {
114 return {
115 kind: "modified",
116 modifier,
117 source: sourcelikeToSource(sl)
118 };
119}
120
121export interface Location {
122 // Both of these are zero-based.

Callers 4

JavaRendererClass · 0.90
TypeScriptRendererClass · 0.90
emitSourceStructureMethod · 0.90
SwiftRendererClass · 0.90

Calls 1

sourcelikeToSourceFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…