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

Function newBody

hclwrite/ast_body.go:20–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18}
19
20func newBody() *Body {
21 return &Body{
22 inTree: newInTree(),
23 items: newNodeSet(),
24 }
25}
26
27func (b *Body) appendItem(c nodeContent) *node {
28 nn := b.children.Append(c)

Callers 2

initMethod · 0.85
NewEmptyFileFunction · 0.85

Calls 2

newInTreeFunction · 0.85
newNodeSetFunction · 0.85

Tested by

no test coverage detected