nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
parser: display colored lines with error messages
[nit.git]
/
src
/
location.nit
diff --git
a/src/location.nit
b/src/location.nit
index
65cbbbc
..
0603050
100644
(file)
--- a/
src/location.nit
+++ b/
src/location.nit
@@
-30,7
+30,11
@@
class SourceFile
do
self.filename = filename
string = stream.read_all
+ line_starts[0] = 0
end
+
+ # Position of each line start
+ var line_starts: Array[Int] = new Array[Int]
end
# A location inside a source file