MCPcopy Create free account
hub / github.com/arktypeio/arktype / textOf

Method textOf

ark/aot/module.ts:125–127  ·  view source on GitHub ↗
(span: Span)

Source from the content-addressed store, hash-verified

123 }
124
125 textOf(span: Span): string {
126 return this.source.slice(span.start, span.end)
127 }
128
129 snippetOf(span: Span): string {
130 const text = this.textOf(span).replace(/\s*\n\s*/g, " ")

Callers 1

snippetOfMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected