MCPcopy
hub / github.com/hashicorp/hcl / AppendNode

Method AppendNode

hclwrite/node.go:124–134  ·  view source on GitHub ↗
(n *node)

Source from the content-addressed store, hash-verified

122}
123
124func (ns *nodes) AppendNode(n *node) {
125 if ns.last != nil {
126 n.before = ns.last
127 ns.last.after = n
128 }
129 n.list = ns
130 ns.last = n
131 if ns.first == nil {
132 ns.first = n
133 }
134}
135
136// Insert inserts a nodeContent at a given position.
137// This is just a wrapper for InsertNode. See InsertNode for details.

Callers 9

AppendMethod · 0.95
parseFunction · 0.80
parseAttributeFunction · 0.80
parseBlockFunction · 0.80
parseBlockLabelsFunction · 0.80
parseExpressionFunction · 0.80
parseTraversalFunction · 0.80
appendItemNodeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected