nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
typing: shortcut `get_variable` on never-adapted variables
[nit.git]
/
src
/
model_utils.nit
diff --git
a/src/model_utils.nit
b/src/model_utils.nit
index
7302619
..
24105e6
100644
(file)
--- a/
src/model_utils.nit
+++ b/
src/model_utils.nit
@@
-34,7
+34,7
@@
redef class MConcern
end
redef class MProject
end
redef class MProject
- redef fun concern_rank is cached do
+ redef var concern_rank is lazy do
var max = 0
for mgroup in mgroups do
var mmax = mgroup.concern_rank
var max = 0
for mgroup in mgroups do
var mmax = mgroup.concern_rank
@@
-87,7
+87,7
@@
redef class MGroup
return res
end
return res
end
- redef fun concern_rank is cached do
+ redef var concern_rank is lazy do
var max = 0
for mmodule in collect_mmodules do
var mmax = mmodule.concern_rank
var max = 0
for mmodule in collect_mmodules do
var mmax = mmodule.concern_rank
@@
-163,7
+163,7
@@
redef class MModule
return mclasses
end
return mclasses
end
- redef fun concern_rank is cached do
+ redef var concern_rank is lazy do
var max = 0
for p in in_importation.direct_greaters do
var pmax = p.concern_rank
var max = 0
for p in in_importation.direct_greaters do
var pmax = p.concern_rank