Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/hashicorp/hcl
/ Read
Method
Read
hclsyntax/peeker.go:55–59 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
53
}
54
55
func
(p *peeker) Read() Token {
56
ret, nextIdx := p.nextToken()
57
p.NextIndex = nextIdx
58
return
ret
59
}
60
61
func
(p *peeker) NextRange() hcl.Range {
62
return
p.Peek().Range
Callers
15
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
parseTupleCons
Method · 0.45
Calls
1
nextToken
Method · 0.95
Tested by
1
TestPeeker
Function · 0.36