MCPcopy Create free account
hub / github.com/effect-app/libs / indentBlock

Function indentBlock

packages/eslint-codegen-model/src/shared/codegen-block.ts:63–71  ·  view source on GitHub ↗
(content: string, indent: string)

Source from the content-addressed store, hash-verified

61}
62
63export function indentBlock(content: string, indent: string): string {
64 if (indent.length === 0) {
65 return content
66 }
67 return content
68 .split("\n")
69 .map((line) => line.length === 0 ? line : `${indent}${line}`)
70 .join("\n")
71}
72
73export type CodegenDefaults = Partial<Record<string, Record<string, unknown>>>
74

Callers 2

updateFileFunction · 0.90
ProgramFunction · 0.90

Calls 3

joinMethod · 0.80
mapMethod · 0.65
splitMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…