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

Method Append

hclwrite/node.go:115–122  ·  view source on GitHub ↗
(c nodeContent)

Source from the content-addressed store, hash-verified

113}
114
115func (ns *nodes) Append(c nodeContent) *node {
116 n := &node{
117 content: c,
118 }
119 ns.AppendNode(n)
120 n.list = ns
121 return n
122}
123
124func (ns *nodes) AppendNode(n *node) {
125 if ns.last != nil {

Callers 15

parseTraversalStepFunction · 0.95
decodeBodyToStructFunction · 0.45
initMethod · 0.45
ReplaceMethod · 0.45
initMethod · 0.45
NewEmptyFileFunction · 0.45
parseFunction · 0.45
NewFileFunction · 0.45
appendItemMethod · 0.45
LoadTestFileMethod · 0.45

Calls 1

AppendNodeMethod · 0.95

Tested by

no test coverage detected