Documentation
¶
Overview ¶
Package section is responsible for splitting a program into its different sections without attempting to parse the contents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Change ¶
type Change struct {
// Position at which the first @ of the header occurs.
HeaderPos token.Pos
// Changes can optionally have a name.
//
// If any, it is specified between the first pair of @@s in the change.
Name string
// Metavariables section of the change.
Meta Section
// Position of the second "@@".
AtPos token.Pos
// Patch is the patch section of the change. This is the code after the
// second @@.
Patch Section
// Comments in the patch
Comments []string
}
Change is a single change in a program.
type Line ¶
type Line struct {
// Position at which this line begins.
StartPos token.Pos
// Contents of the line.
Text []byte
}
Line is a single line from the patch.
type LinePos ¶
type LinePos struct {
// Offset of the first character of this line.
Offset int
// Original position from which this line was extracted.
Pos token.Pos
}
LinePos contains positional information about a line in a buffer.
Click to show internal directories.
Click to hide internal directories.