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

Method Range

pos_scanner.go:141–143  ·  view source on GitHub ↗

Range returns a range that covers the latest token obtained after a call to Scan returns true.

()

Source from the content-addressed store, hash-verified

139// Range returns a range that covers the latest token obtained after a call
140// to Scan returns true.
141func (sc *RangeScanner) Range() Range {
142 return sc.cur
143}
144
145// Bytes returns the slice of the input buffer that is covered by the range
146// that would be returned by Range.

Callers 2

TestPosScannerFunction · 0.95
WriteDiagnosticMethod · 0.95

Calls

no outgoing calls

Tested by 1

TestPosScannerFunction · 0.76