MCPcopy
hub / github.com/hashicorp/hcl / contextString

Function contextString

diagnostic_text.go:336–345  ·  view source on GitHub ↗
(file *File, offset int)

Source from the content-addressed store, hash-verified

334}
335
336func contextString(file *File, offset int) string {
337 type contextStringer interface {
338 ContextString(offset int) string
339 }
340
341 if cser, ok := file.Nav.(contextStringer); ok {
342 return cser.ContextString(offset)
343 }
344 return ""
345}

Callers 1

WriteDiagnosticMethod · 0.85

Calls 1

ContextStringMethod · 0.65

Tested by

no test coverage detected