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

Method FileOf

compiler/srcfiles/list.go:48–51  ·  view source on GitHub ↗
(pos int)

Source from the content-addressed store, hash-verified

46}
47
48func (l *List) FileOf(pos int) File {
49 i := sort.Search(len(l.Files), func(i int) bool { return l.Files[i].start > pos }) - 1
50 return l.Files[i]
51}
52
53// Concat reads in the indicated files and concatenates their content with
54// newlines appending the final query text.

Callers 1

ErrorMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected