nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model_collect: kill ModelView
[nit.git]
/
src
/
model
/
model.nit
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
dc9b978
..
c86bf96
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-159,6
+159,14
@@
class ConcernsTree
super OrderedTree[MConcern]
end
super OrderedTree[MConcern]
end
+redef class MGroup
+ redef var is_test is lazy do
+ var parent = self.parent
+ if parent != null and parent.is_test then return true
+ return name == "tests"
+ end
+end
+
redef class MModule
# All the classes introduced in the module
var intro_mclasses = new Array[MClass]
redef class MModule
# All the classes introduced in the module
var intro_mclasses = new Array[MClass]
@@
-1795,6
+1803,8
@@
class MNullableType
if t == mtype then return self
return t.as_nullable
end
if t == mtype then return self
return t.as_nullable
end
+
+ redef fun mdoc_or_fallback do return mtype.mdoc_or_fallback
end
# A non-null version of a formal type.
end
# A non-null version of a formal type.