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

Method Peek

hclsyntax/parser_template.go:348–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

346}
347
348func (p *templateParser) Peek() templateToken {
349 return p.Tokens[p.pos]
350}
351
352func (p *templateParser) Read() templateToken {
353 ret := p.Peek()

Callers 6

parseRootMethod · 0.95
parseExprMethod · 0.95
parseIfMethod · 0.95
parseForMethod · 0.95
ReadMethod · 0.95
parseTemplatePartsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected