Documentation ¶
Index ¶
- func AddStringToList(value *Value, s string) (modified bool)
- func ListIsSorted(value Value) bool
- func Print(file *File) ([]byte, error)
- func RemoveStringFromList(value *Value, s string) (modified bool)
- func SortList(file *File, value Value)
- func SortLists(file *File)
- type Assignment
- type Comment
- type Definition
- type Expression
- type File
- type Ident
- type Module
- type ParseError
- type Property
- type Scope
- type Value
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddStringToList ¶
func ListIsSorted ¶
func RemoveStringFromList ¶
Types ¶
type Assignment ¶
type Assignment struct { Name Ident Value Value OrigValue Value Pos scanner.Position Assigner string Referenced bool }
func (*Assignment) String ¶
func (a *Assignment) String() string
type Definition ¶
type Definition interface { String() string // contains filtered or unexported methods }
type Expression ¶
func (*Expression) String ¶
func (e *Expression) String() string
type File ¶
type File struct { Defs []Definition Comments []Comment }
type Module ¶
type ParseError ¶
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type Scope ¶
type Scope struct {
// contains filtered or unexported fields
}
func (*Scope) Add ¶
func (s *Scope) Add(assignment *Assignment) error
Click to show internal directories.
Click to hide internal directories.