nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
model: Fix comment for MVisibility
[nit.git]
/
src
/
model
/
mmodule.nit
diff --git
a/src/model/mmodule.nit
b/src/model/mmodule.nit
index
d2750ed
..
5cce237
100644
(file)
--- a/
src/model/mmodule.nit
+++ b/
src/model/mmodule.nit
@@
-17,7
+17,6
@@
# modules and module hierarchies in the metamodel
module mmodule
# modules and module hierarchies in the metamodel
module mmodule
-import poset
import location
import mproject
private import more_collections
import location
import mproject
private import more_collections
@@
-69,8
+68,10
@@
end
# A Nit module is usually associated with a Nit source file.
class MModule
# A Nit module is usually associated with a Nit source file.
class MModule
+ super MConcern
+
# The model considered
# The model considered
- var model: Model
+ redef var model: Model
# placebo for old module nesting hierarchy
# return null if self is not nested (ie. is a top-level module)
# placebo for old module nesting hierarchy
# return null if self is not nested (ie. is a top-level module)
@@
-82,7
+83,7
@@
class MModule
var mgroup: nullable MGroup
# The short name of the module
var mgroup: nullable MGroup
# The short name of the module
- var name: String
+ redef var name: String
# The origin of the definition
var location: Location
# The origin of the definition
var location: Location
@@
-219,4
+220,11
@@
class MModule
abort
end
end
abort
end
end
+
+ # Is the mmodule created for internal purpose?
+ # Fictive module are instantied internally but they should not be
+ # exposed to the final user
+ var is_fictive: Bool = false is writable
+
+ redef fun parent_concern do return mgroup
end
end