Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
11
func
newPeeker(tokens []token) *peeker {
12
return
&peeker{
13
tokens: tokens,
14
pos: 0,
15
}
16
}
17
18
func
(p *peeker) Peek() token {
19
return
p.tokens[p.pos]
Callers
2
parseFileContent
Function · 0.70
parseExpression
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected