Commit 8b410556 authored by Robert Griesemer's avatar Robert Griesemer

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

R=r
CC=golang-dev
https://golang.org/cl/4005041
parent bff2c207
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment