MCPcopy Index your code
hub / github.com/yuin/gopher-lua / NewScanner

Function NewScanner

parse/lexer.go:51–60  ·  view source on GitHub ↗
(reader io.Reader, source string)

Source from the content-addressed store, hash-verified

49}
50
51func NewScanner(reader io.Reader, source string) *Scanner {
52 return &Scanner{
53 Pos: ast.Position{
54 Source: source,
55 Line: 1,
56 Column: 0,
57 },
58 reader: bufio.NewReaderSize(reader, 4096),
59 }
60}
61
62func (sc *Scanner) Error(tok string, msg string) *Error { return &Error{sc.Pos, msg, tok} }
63

Callers 1

ParseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…