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

Method AppendUnstructuredTokens

hclwrite/node.go:166–174  ·  view source on GitHub ↗
(tokens Tokens)

Source from the content-addressed store, hash-verified

164}
165
166func (ns *nodes) AppendUnstructuredTokens(tokens Tokens) *node {
167 if len(tokens) == 0 {
168 return nil
169 }
170 n := newNode(tokens)
171 ns.AppendNode(n)
172 n.list = ns
173 return n
174}
175
176// FindNodeWithContent searches the nodes for a node whose content equals
177// the given content. If it finds one then it returns it. Otherwise it returns

Callers 11

parseTraversalStepFunction · 0.95
initMethod · 0.45
initMethod · 0.45
NewExpressionRawFunction · 0.45
NewExpressionLiteralFunction · 0.45
parseAttributeFunction · 0.45
parseBlockFunction · 0.45
parseBlockLabelsFunction · 0.45
parseExpressionFunction · 0.45
parseTraversalFunction · 0.45

Calls 2

AppendNodeMethod · 0.95
newNodeFunction · 0.85

Tested by

no test coverage detected