Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyTracker ¶
type KeyTracker struct {
// contains filtered or unexported fields
}
KeyTracker is a tracker that keeps track of the current Key as the AST is walked.
func (*KeyTracker) UpdateArrayTable ¶
func (t *KeyTracker) UpdateArrayTable(node ast.Node)
UpdateArrayTable sets the state of the tracker with the AST array table node.
func (*KeyTracker) UpdateTable ¶
func (t *KeyTracker) UpdateTable(node ast.Node)
UpdateTable sets the state of the tracker with the AST table node.
type SeenTracker ¶
type SeenTracker struct {
// contains filtered or unexported fields
}
SeenTracker tracks which keys have been seen with which TOML type to flag duplicates and mismatches according to the spec.
func (*SeenTracker) CheckExpression ¶
func (s *SeenTracker) CheckExpression(node ast.Node) error
CheckExpression takes a top-level node and checks that it does not contain keys that have been seen in previous calls, and validates that types are consistent.
Click to show internal directories.
Click to hide internal directories.