MCPcopy Create free account
hub / github.com/brimdata/super / fcbLineNumber

Function fcbLineNumber

mdtest/mdtest.go:287–289  ·  view source on GitHub ↗
(fcb *ast.FencedCodeBlock, source []byte)

Source from the content-addressed store, hash-verified

285}
286
287func fcbLineNumber(fcb *ast.FencedCodeBlock, source []byte) int {
288 return bytes.Count(source[:fcb.Info.Segment.Start], []byte("\n")) + 1
289}
290
291func fcbLines(fcb *ast.FencedCodeBlock, source []byte) string {
292 var b strings.Builder

Callers 2

parseMarkdownFunction · 0.85
fcbErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected