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

Function formatPointError

compiler/srcfiles/error.go:74–84  ·  view source on GitHub ↗
(b *strings.Builder, start Position)

Source from the content-addressed store, hash-verified

72}
73
74func formatPointError(b *strings.Builder, start Position) {
75 col := start.Column - 1
76 for k := range col {
77 if k >= col-4 && k != col-1 {
78 b.WriteByte('=')
79 } else {
80 b.WriteByte(' ')
81 }
82 }
83 b.WriteString("^ ===")
84}

Callers 1

ErrorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected