MCPcopy
hub / github.com/pelletier/go-toml / Next

Method Next

unstable/ast.go:74–79  ·  view source on GitHub ↗

Next returns a pointer to the next node, or nil if there is no next node.

()

Source from the content-addressed store, hash-verified

72
73// Next returns a pointer to the next node, or nil if there is no next node.
74func (n *Node) Next() *Node {
75 if n.next == 0 {
76 return nil
77 }
78 return &n.parser.nodes[n.next-1]
79}
80
81// Child returns a pointer to the first child node of this node. Other children
82// can be accessed calling Next on the first child. Returns nil if there is no

Callers 15

keyLocationFunction · 0.45
collectMapEntriesMethod · 0.45
setAnyKeyMethod · 0.45
wrapSeenErrorMethod · 0.45
updateTableKeyMethod · 0.45
rawKeySuffixMethod · 0.45
rawValueMethod · 0.45
assignArrayMethod · 0.45
decodeAnyMethod · 0.45
assignInlineTableMethod · 0.45
NextMethod · 0.45

Calls

no outgoing calls

Tested by 5

compareIteratorFunction · 0.36
ExampleParser_commentsFunction · 0.36
TestIterator_IsLastFunction · 0.36
TestNodeChainingFunction · 0.36
TestMultipleExpressionsFunction · 0.36