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

Method Read

hclsyntax/parser_template.go:352–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

350}
351
352func (p *templateParser) Read() templateToken {
353 ret := p.Peek()
354 if _, end := ret.(*templateEndToken); !end {
355 p.pos++
356 }
357 return ret
358}
359
360// parseTemplateParts produces a flat sequence of "template tokens", which are
361// either literal values (with any "trimming" already applied), interpolation

Callers 4

parseExprMethod · 0.95
parseIfMethod · 0.95
parseForMethod · 0.95
parseTemplatePartsMethod · 0.45

Calls 1

PeekMethod · 0.95

Tested by

no test coverage detected