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

Function newPeeker

json/peeker.go:11–16  ·  view source on GitHub ↗
(tokens []token)

Source from the content-addressed store, hash-verified

9}
10
11func newPeeker(tokens []token) *peeker {
12 return &peeker{
13 tokens: tokens,
14 pos: 0,
15 }
16}
17
18func (p *peeker) Peek() token {
19 return p.tokens[p.pos]

Callers 2

parseFileContentFunction · 0.70
parseExpressionFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected