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

Method assertUnattached

hclwrite/node.go:86–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84}
85
86func (n *node) assertUnattached() {
87 if n.list != nil {
88 panic(fmt.Sprintf("attempt to attach already-attached node %#v", n))
89 }
90}
91
92// nodeContent is the interface type implemented by all AST content types.
93type nodeContent interface {

Callers 2

initMethod · 0.45
appendItemNodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected