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

Function newPeeker

hclsyntax/peeker.go:41–48  ·  view source on GitHub ↗
(tokens Tokens, includeComments bool)

Source from the content-addressed store, hash-verified

39}
40
41func newPeeker(tokens Tokens, includeComments bool) *peeker {
42 return &peeker{
43 Tokens: tokens,
44 IncludeComments: includeComments,
45
46 IncludeNewlinesStack: []bool{true},
47 }
48}
49
50func (p *peeker) Peek() Token {
51 ret, _ := p.nextToken()

Callers 6

ParseConfigFunction · 0.70
ParseExpressionFunction · 0.70
ParseTemplateFunction · 0.70
ParseTraversalAbsFunction · 0.70
ParseTraversalPartialFunction · 0.70
TestPeekerFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestPeekerFunction · 0.56