Factor out some position management code in the lexer
This commit is contained in:
parent
8069d2f266
commit
3a9ccd53e5
2 changed files with 8 additions and 8 deletions
|
@ -189,7 +189,7 @@ pub impl FileMap {
|
|||
return FileMap {
|
||||
name: filename, substr: substr, src: src,
|
||||
start_pos: start_pos,
|
||||
mut lines: ~[start_pos]
|
||||
mut lines: ~[]
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue