Documentation
¶
Index ¶
- Constants
- type SourceLocation
- func (location SourceLocation) ByteLocToSnippet() (int, int, []byte, error)
- func (location1 SourceLocation) IsDisjointWith(location2 SourceLocation) bool
- func (location SourceLocation) LocationMarkup() ([]byte, error)
- func (location1 SourceLocation) Overlaps(location2 SourceLocation) bool
- func (location1 SourceLocation) PartiallyOverlaps(location2 SourceLocation) bool
Constants ¶
View Source
const GithubGreen string = "#e6ffed"
View Source
const GithubRed string = "#ffeef0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SourceLocation ¶
A particular range of bytes in a source file.
func (SourceLocation) ByteLocToSnippet ¶
func (location SourceLocation) ByteLocToSnippet() (int, int, []byte, error)
func (SourceLocation) IsDisjointWith ¶
func (location1 SourceLocation) IsDisjointWith(location2 SourceLocation) bool
func (SourceLocation) LocationMarkup ¶
func (location SourceLocation) LocationMarkup() ([]byte, error)
func (SourceLocation) Overlaps ¶
func (location1 SourceLocation) Overlaps(location2 SourceLocation) bool
It can be the case that srcloc1.Overlaps(srcloc2) AND srcloc2.Overlaps(srcloc1), if they're the same size.
func (SourceLocation) PartiallyOverlaps ¶
func (location1 SourceLocation) PartiallyOverlaps(location2 SourceLocation) bool
Click to show internal directories.
Click to hide internal directories.