nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
neo_doxygen: fix some typos and warnings
[nit.git]
/
contrib
/
neo_doxygen
/
src
/
model
/
location.nit
diff --git
a/contrib/neo_doxygen/src/model/location.nit
b/contrib/neo_doxygen/src/model/location.nit
index
a0a183b
..
46551a8
100644
(file)
--- a/
contrib/neo_doxygen/src/model/location.nit
+++ b/
contrib/neo_doxygen/src/model/location.nit
@@
-36,9
+36,10
@@
class Location
# The one-based column index of the last character.
var column_end: Int = 1 is writable
# The one-based column index of the last character.
var column_end: Int = 1 is writable
- redef fun to_s: String do
+ redef fun to_s do
+ var path = path
var file_part = "/dev/null:"
var file_part = "/dev/null:"
- if path != null and path.length > 0 then file_part = "{path.as(not null)}:"
+ if path != null and path.length > 0 then file_part = "{path}:"
return "{file_part}{line_start},{column_start}--{line_end},{column_end}"
end
return "{file_part}{line_start},{column_start}--{line_end},{column_end}"
end