MCPcopy
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
55func (p *peeker) Read() Token {
56 ret, nextIdx := p.nextToken()
57 p.NextIndex = nextIdx
58 return ret
59}
60
61func (p *peeker) NextRange() hcl.Range {
62 return p.Peek().Range

Callers 15

parseTraversalMethod · 0.45
ParseBodyMethod · 0.45
ParseBodyItemMethod · 0.45
parseSingleAttrBodyMethod · 0.45
parseBinaryOpsMethod · 0.45
parseExpressionTermMethod · 0.45
parseTupleConsMethod · 0.45

Calls 1

nextTokenMethod · 0.95

Tested by 1

TestPeekerFunction · 0.36