MCPcopy Create free account
hub / github.com/DAddYE/igo / Init

Method Init

scanner/scanner.go:130–151  ·  view source on GitHub ↗

Init prepares the scanner s to tokenize the text src by setting the scanner at the beginning of src. The scanner uses the file set file for position information and it adds line information for each line. It is ok to re-use the same file when re-scanning the same file as line information which is al

(file *token.File, src []byte, err ErrorHandler, mode Mode)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

initMethod · 0.80

Calls 3

nextMethod · 0.95
SizeMethod · 0.80
NameMethod · 0.80

Tested by

no test coverage detected