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

Method appendItemNode

hclwrite/ast_body.go:33–38  ·  view source on GitHub ↗
(nn *node)

Source from the content-addressed store, hash-verified

31}
32
33func (b *Body) appendItemNode(nn *node) *node {
34 nn.assertUnattached()
35 b.children.AppendNode(nn)
36 b.items.Add(nn)
37 return nn
38}
39
40// Clear removes all of the items from the body, making it empty.
41func (b *Body) Clear() {

Callers 1

parseBodyFunction · 0.95

Implementers 8

Bodyhclsyntax/structure.go
unknownBodyext/dynblock/unknown_body.go
expandBodyext/dynblock/expand_body.go
deepWrapperext/transform/transform.go
diagBodyext/transform/error.go
bodyjson/structure.go
mockBodyhcltest/mock.go

Calls 3

AppendNodeMethod · 0.80
AddMethod · 0.80
assertUnattachedMethod · 0.45

Tested by

no test coverage detected