diff options
Diffstat (limited to 'Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser.go')
-rw-r--r-- | Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser.go b/Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser.go index 1536344d7..92ac5b0c7 100644 --- a/Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser.go +++ b/Godeps/_workspace/src/github.com/robertkrimen/otto/parser/parser.go @@ -52,7 +52,6 @@ const ( ) type _parser struct { - filename string str string length int base int @@ -260,7 +259,7 @@ func (self *_parser) position(idx file.Idx) file.Position { position := file.Position{} offset := int(idx) - self.base str := self.str[:offset] - position.Filename = self.filename + position.Filename = self.file.Name() line, last := lineCount(str) position.Line = 1 + line if last >= 0 { |