gotools/gopls/internal/cmd/span.go

type span

type point

type _span

type _point

func newSpan(uri protocol.DocumentURI, start, end point) span {}

func newPoint(line, col, offset int) point {}

// sortSpans sorts spans into a stable but unspecified order.
func sortSpans(spans []span) {}

// compare implements a three-valued ordered comparison of Spans.
func compare(a, b span) int {}

func comparePoint(a, b _point) int {}

func (s span) HasPosition() bool             {}

func (s span) HasOffset() bool               {}

func (s span) IsValid() bool                 {}

func (s span) IsPoint() bool                 {}

func (s span) URI() protocol.DocumentURI     {}

func (s span) Start() point                  {}

func (s span) End() point                    {}

func (s *span) MarshalJSON() ([]byte, error) {}

func (s *span) UnmarshalJSON(b []byte) error {}

func (p point) HasPosition() bool             {}

func (p point) HasOffset() bool               {}

func (p point) IsValid() bool                 {}

func (p *point) MarshalJSON() ([]byte, error) {}

func (p *point) UnmarshalJSON(b []byte) error {}

func (p point) Line() int {}

func (p point) Column() int {}

func (p point) Offset() int {}

func (p _point) hasPosition() bool {}

func (p _point) hasOffset() bool   {}

func (p _point) isValid() bool     {}

func (p _point) isZero() bool {}

func (s *_span) clean() {}

func (p *_point) clean() {}

// Format implements fmt.Formatter to print the Location in a standard form.
// The format produced is one that can be read back in using parseSpan.
//
// TODO(adonovan): this is esoteric, and the formatting options are
// never used outside of TestFormat. Replace with something simpler
// along the lines of MappedRange.String.
func (s span) Format(f fmt.State, c rune) {}