mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
48 lines
715 B
Go
48 lines
715 B
Go
package ast
|
|
|
|
import (
|
|
"config-lsp/common"
|
|
"config-lsp/common/parser"
|
|
|
|
"github.com/emirpasic/gods/maps/treemap"
|
|
)
|
|
|
|
type GitKey struct {
|
|
common.LocationRange
|
|
Value parser.ParsedString
|
|
}
|
|
|
|
type GitSeparator struct {
|
|
common.LocationRange
|
|
Value parser.ParsedString
|
|
}
|
|
|
|
type GitValue struct {
|
|
common.LocationRange
|
|
Value parser.ParsedString
|
|
}
|
|
|
|
type GitEntry struct {
|
|
common.LocationRange
|
|
Key *GitKey
|
|
Separator *GitSeparator
|
|
Value *GitValue
|
|
}
|
|
|
|
type GitSectionHeader struct {
|
|
common.LocationRange
|
|
Title *parser.ParsedString
|
|
}
|
|
|
|
type GitSection struct {
|
|
common.LocationRange
|
|
Entries *treemap.Map
|
|
Title *GitSectionHeader
|
|
}
|
|
|
|
type GitConfig struct {
|
|
Sections []*GitSection
|
|
CommentLines map[uint32]struct{}
|
|
}
|
|
|