nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
model: add MProperty::is_autoinit to identify method used as initializer
[nit.git]
/
src
/
model
/
model.nit
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
00ca5cf
..
f0f4ff9
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-1757,6
+1757,9
@@
abstract class MProperty
# The visibility of the property
var visibility: MVisibility
+ # Is the property usable as an initializer?
+ var is_autoinit = false is writable
+
init
do
intro_mclassdef.intro_mproperties.add(self)