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

Method positionOf

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

Source from the content-addressed store, hash-verified

118 }
119
120 positionOf(span: Span): string {
121 const [line, column] = this.lineAndColumnOf(span.start)
122 return `${this.path}:${line}:${column}`
123 }
124
125 textOf(span: Span): string {
126 return this.source.slice(span.start, span.end)

Callers 15

labelOfFunction · 0.80
emitDropFunction · 0.80
readBindingMethod · 0.80
unreadableBindingOfMethod · 0.80
writtenThroughThisMethod · 0.80
writtenProblemOfMethod · 0.80
declareUnsetMethod · 0.80
notStaticHelperMethod · 0.80
createStandInProxyMethod · 0.80
admitMethod · 0.80
labelOfMethod · 0.80
staticProblemOfFunction · 0.80

Calls 1

lineAndColumnOfMethod · 0.95

Tested by

no test coverage detected