Lines Matching defs:Span
26 type Span struct { struct
27 v span
75 func Compare(a, b Span) int {
114 func (s Span) HasPosition() bool { return s.v.Start.hasPosition() }
115 func (s Span) HasOffset() bool { return s.v.Start.hasOffset() }
116 func (s Span) IsValid() bool { return s.v.Start.isValid() }
117 func (s Span) IsPoint() bool { return s.v.Start == s.v.End }
118 func (s Span) URI() URI { return s.v.URI }
119 func (s Span) Start() Point { return Point{s.v.Start} }
120 func (s Span) End() Point { return Point{s.v.End} }
121 func (s *Span) MarshalJSON() ([]byte, error) { return json.Marshal(&s.v) }
122 func (s *Span) UnmarshalJSON(b []byte) error { return json.Unmarshal(b, &s.v) }
180 func (s Span) Format(f fmt.State, c rune) {
230 func (s Span) WithPosition(c Converter) (Span, error) {
237 func (s Span) WithOffset(c Converter) (Span, error) {
244 func (s Span) WithAll(c Converter) (Span, error) {
251 func (s *Span) update(c Converter, withPos, withOffset bool) error {