1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:54:39 -07:00

fix build (submitted a modified parser.go file by mistake)

R=r
CC=golang-dev
https://golang.org/cl/4005041
This commit is contained in:
Robert Griesemer 2011-01-13 17:26:38 -08:00
parent bff2c207e4
commit 8b41055656

View File

@ -69,8 +69,8 @@ func scannerMode(mode uint) uint {
}
func (p *parser) init(file *token.File, src []byte, mode uint) {
p.file = file
func (p *parser) init(fset *token.FileSet, filename string, src []byte, mode uint) {
p.file = fset.AddFile(filename, fset.Base(), len(src))
p.scanner.Init(p.file, src, p, scannerMode(mode))
p.mode = mode
p.trace = mode&Trace != 0 // for convenience (p.trace is used frequently)