Versions in this module Expand all Collapse all v0 v0.1.0 Feb 5, 2019 Changes in this version + var NoLocation = &SourceLocation + type Error struct + Location Location + Message string + func (e *Error) ToDisplayString(source Source) string + type Errors struct + func NewErrors(source Source) *Errors + func (e *Errors) GetErrors() []Error + func (e *Errors) ReportError(l Location, format string, args ...interface{}) + func (e *Errors) ToDisplayString() string + type Location interface + Column func() int + Line func() int + func NewLocation(line, column int) Location + type Source interface + Content func() string + Description func() string + IDLocation func(exprID int64) (Location, bool) + IDOffset func(exprID int64) (int32, bool) + LineOffsets func() []int32 + LocationOffset func(location Location) (int32, bool) + OffsetLocation func(offset int32) (Location, bool) + Snippet func(line int) (string, bool) + func NewInfoSource(info *exprpb.SourceInfo) Source + func NewStringSource(contents string, description string) Source + func NewTextSource(text string) Source + type SourceLocation struct + func (l *SourceLocation) Column() int + func (l *SourceLocation) Line() int