Versions in this module Expand all Collapse all v0 v0.4.0 Mar 4, 2022 Changes in this version + func WithBuffers(ctx context.Context, buffers *BufferLookup) context.Context + type BufferLookup struct + func Buffers(ctx context.Context) *BufferLookup + func NewBuffers() *BufferLookup + func (b *BufferLookup) All() []*FileBuffer + func (b *BufferLookup) Get(filename string) *FileBuffer + func (b *BufferLookup) Set(filename string, fb *FileBuffer) + type FileBuffer struct + func New(filename string, opts ...Option) *FileBuffer + func (fb *FileBuffer) Bytes() []byte + func (fb *FileBuffer) Filename() string + func (fb *FileBuffer) Len() int + func (fb *FileBuffer) Line(ln int) ([]byte, error) + func (fb *FileBuffer) OnDisk() bool + func (fb *FileBuffer) Position(line, column int) lexer.Position + func (fb *FileBuffer) Segment(offset int) ([]byte, error) + func (fb *FileBuffer) SourceMap() *llb.SourceMap + func (fb *FileBuffer) Write(p []byte) (n int, err error) + type Option func(*FileBuffer) + func WithEphemeral() Option