nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: remove some `call on nullable` warning with a non-null local variable
[nit.git]
/
src
/
model
/
mmodule.nit
diff --git
a/src/model/mmodule.nit
b/src/model/mmodule.nit
index
db4b8c6
..
c637c41
100644
(file)
--- a/
src/model/mmodule.nit
+++ b/
src/model/mmodule.nit
@@
-65,6
+65,7
@@
redef class MGroup
redef fun mdoc_or_fallback
do
if mdoc != null then return mdoc
redef fun mdoc_or_fallback
do
if mdoc != null then return mdoc
+ var default_mmodule = self.default_mmodule
if default_mmodule == null then return null
return default_mmodule.mdoc_or_fallback
end
if default_mmodule == null then return null
return default_mmodule.mdoc_or_fallback
end
@@
-164,6
+165,7
@@
class MModule
do
model.mmodules_by_name.add_one(name, self)
model.mmodules.add(self)
do
model.mmodules_by_name.add_one(name, self)
model.mmodules.add(self)
+ var mgroup = self.mgroup
if mgroup != null then
mgroup.mmodules.add(self)
if mgroup.name == name then
if mgroup != null then
mgroup.mmodules.add(self)
if mgroup.name == name then