nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge: lib/standard/bytes: Added pop method
[nit.git]
/
src
/
location.nit
diff --git
a/src/location.nit
b/src/location.nit
index
1a27697
..
108cf28
100644
(file)
--- a/
src/location.nit
+++ b/
src/location.nit
@@
-42,7
+42,9
@@
class SourceFile
line_starts[0] = 0
end
- # Position of each line start
+ # Offset of each line start in the content `string`.
+ #
+ # Used for fast access to each line when rendering parts of the `string`.
var line_starts = new Array[Int]
end