Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hashicorp/hcl
/ Peek
Method
Peek
hclsyntax/peeker.go:50–53 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
48
}
49
50
func
(p *peeker) Peek() Token {
51
ret, _ := p.nextToken()
52
return
ret
53
}
54
55
func
(p *peeker) Read() Token {
56
ret, nextIdx := p.nextToken()
Callers
15
NextRange
Method · 0.95
parseTraversal
Method · 0.45
ParseBody
Method · 0.45
ParseBodyItem
Method · 0.45
parseSingleAttrBody
Method · 0.45
finishParsingBodyAttribute
Method · 0.45
finishParsingBodyBlock
Method · 0.45
parseTernaryConditional
Method · 0.45
parseBinaryOps
Method · 0.45
parseExpressionTraversals
Method · 0.45
parseExpressionTerm
Method · 0.45
finishParsingFunctionCall
Method · 0.45
Calls
1
nextToken
Method · 0.95
Tested by
1
TestPeeker
Function · 0.36