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

Method snippetOf

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

Source from the content-addressed store, hash-verified

127 }
128
129 snippetOf(span: Span): string {
130 const text = this.textOf(span).replace(/\s*\n\s*/g, " ")
131 return text.length > 60 ? `${text.slice(0, 59)}…` : text
132 }
133}
134
135const parse = (id: string, source: string, lang: Lang) =>

Callers 15

labelOfFunction · 0.80
annotationSnippetOfFunction · 0.80
genericDefinitionOfFunction · 0.80
innermostSnippetOfFunction · 0.80
operandLabelOfFunction · 0.80
emitDropFunction · 0.80
evaluateNodeMethod · 0.80
rejectMethod · 0.80
readBindingMethod · 0.80
unreadableBindingOfMethod · 0.80
calleeOfMethod · 0.80
callArktypeMethod · 0.80

Calls 2

textOfMethod · 0.95
replaceMethod · 0.80

Tested by

no test coverage detected