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

Function newBlockLabels

hclwrite/ast_block.go:114–122  ·  view source on GitHub ↗
(labels []string)

Source from the content-addressed store, hash-verified

112}
113
114func newBlockLabels(labels []string) *blockLabels {
115 ret := &blockLabels{
116 inTree: newInTree(),
117 items: newNodeSet(),
118 }
119
120 ret.Replace(labels)
121 return ret
122}
123
124func (bl *blockLabels) Replace(newLabels []string) {
125 bl.children.Clear()

Callers 2

initMethod · 0.85
parseBlockLabelsFunction · 0.85

Calls 3

ReplaceMethod · 0.95
newInTreeFunction · 0.85
newNodeSetFunction · 0.85

Tested by

no test coverage detected