MCPcopy Create free account
hub / github.com/Effect-TS/effect / getSourceText

Function getSourceText

packages/tools/jsdocs/src/Jsdocs.ts:842–846  ·  view source on GitHub ↗
(context: {
  readonly sourceCode: { readonly text?: string; getText(node?: unknown): string }
})

Source from the content-addressed store, hash-verified

840 * @since 4.0.0
841 */
842export function getSourceText(context: {
843 readonly sourceCode: { readonly text?: string; getText(node?: unknown): string }
844}): string {
845 return context.sourceCode.text ?? context.sourceCode.getText()
846}
847
848/**
849 * Resolves the working directory from an Oxlint-compatible rule context.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected