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

Function Shallow

ext/transform/transform.go:12–14  ·  view source on GitHub ↗

Shallow is equivalent to calling transformer.TransformBody(body), and is provided only for completeness of the top-level API.

(body hcl.Body, transformer Transformer)

Source from the content-addressed store, hash-verified

10// Shallow is equivalent to calling transformer.TransformBody(body), and
11// is provided only for completeness of the top-level API.
12func Shallow(body hcl.Body, transformer Transformer) hcl.Body {
13 return transformer.TransformBody(body)
14}
15
16// Deep applies the given transform to the given body and then
17// wraps the result such that any descendent blocks that are decoded will

Callers

nothing calls this directly

Calls 1

TransformBodyMethod · 0.65

Tested by

no test coverage detected