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

Method ParseTraversalPartial

hclsyntax/parser_traversal.go:32–34  ·  view source on GitHub ↗

ParseTraversalPartial parses an absolute traversal that is permitted to contain splat ([*]) expressions. Only splat expressions within square brackets are permitted ([*]); splat expressions within attribute names are not permitted (.*). The meaning of partial here is that the traversal may be incom

()

Source from the content-addressed store, hash-verified

30// the TraversalAbs or TraversalRel methods. Instead, the caller must handle
31// the traversals manually.
32func (p *parser) ParseTraversalPartial() (hcl.Traversal, hcl.Diagnostics) {
33 return p.parseTraversal(true)
34}
35
36func (p *parser) parseTraversal(allowSplats bool) (hcl.Traversal, hcl.Diagnostics) {
37 var ret hcl.Traversal

Callers 1

ParseTraversalPartialFunction · 0.95

Calls 1

parseTraversalMethod · 0.95

Tested by

no test coverage detected