nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitdoc: introduce StructurePhase
[nit.git]
/
src
/
loader.nit
diff --git
a/src/loader.nit
b/src/loader.nit
index
58d3506
..
a046815
100644
(file)
--- a/
src/loader.nit
+++ b/
src/loader.nit
@@
-528,6
+528,7
@@
redef class ModelBuilder
self.mmodule2nmodule[mmodule] = nmodule
if decl != null then
self.mmodule2nmodule[mmodule] = nmodule
if decl != null then
+ # Extract documentation
var ndoc = decl.n_doc
if ndoc != null then
var mdoc = ndoc.to_mdoc
var ndoc = decl.n_doc
if ndoc != null then
var mdoc = ndoc.to_mdoc
@@
-536,6
+537,8
@@
redef class ModelBuilder
else
advice(decl, "missing-doc", "Documentation warning: Undocumented module `{mmodule}`")
end
else
advice(decl, "missing-doc", "Documentation warning: Undocumented module `{mmodule}`")
end
+ # Is the module a test suite?
+ mmodule.is_test_suite = not decl.get_annotations("test_suite").is_empty
end
return mmodule
end
return mmodule