nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60b95bf
)
ni: fixed namespace display with no public_owner modules
author
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 29 Jul 2013 14:55:17 +0000
(10:55 -0400)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Mon, 29 Jul 2013 14:55:17 +0000
(10:55 -0400)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/ni.nit
patch
|
blob
|
history
diff --git
a/src/ni.nit
b/src/ni.nit
index
c62236c
..
57e4576
100644
(file)
--- a/
src/ni.nit
+++ b/
src/ni.nit
@@
-378,7
+378,11
@@
redef class MClass
end
private fun namespace: String do
- return "{intro_mmodule.public_owner.name}::{name}"
+ if not intro_mmodule.public_owner == null then
+ return "{intro_mmodule.public_owner.name}::{name}"
+ else
+ return "{intro_mmodule.name}::{name}"
+ end
end
end