MCPcopy Create free account
hub / github.com/CashScript/cashscript / getDisplayLine

Function getDisplayLine

packages/utils/src/bitauth-script.ts:59–62  ·  view source on GitHub ↗
(singleLocation: SingleLocationData)

Source from the content-addressed store, hash-verified

57// --- Helpers ---
58
59function getDisplayLine(singleLocation: SingleLocationData): number {
60 const { location, positionHint } = singleLocation;
61 return positionHint === PositionHint.END ? location.end.line : location.start.line;
62}
63
64function escapeCommentChars(text: string): string {
65 return text.replaceAll('/*', '\\/*').replaceAll('*/', '*\\/');

Callers 4

buildLineToOpcodesMapFunction · 0.85
deriveAnchorFunction · 0.85
updateLocationDataFunction · 0.85
deriveSourceTextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected