nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nitdoc: improve what classes to put in main summary
[nit.git]
/
tests
/
bench_send.nit
diff --git
a/tests/bench_send.nit
b/tests/bench_send.nit
index
61c57fb
..
dcf2d9b
100644
(file)
--- a/
tests/bench_send.nit
+++ b/
tests/bench_send.nit
@@
-16,8
+16,8
@@
class A
class A
- readable writable attr _val: Int
- meth hop(a: A, b: A, c: A)
+ readable writable var _val: Int = 0
+ fun hop(a: A, b: A, c: A)
do
if a.val > val then
a.hop(b, c, self)
do
if a.val > val then
a.hop(b, c, self)
@@
-27,7
+27,7
@@
class A
foo(b, c)
foo(c, b)
end
foo(b, c)
foo(c, b)
end
- meth foo(a: A, b: A)
+ fun foo(a: A, b: A)
do
if a.val > val then
a.foo(b, self)
do
if a.val > val then
a.foo(b, self)
@@
-35,14
+35,14
@@
class A
bar(a)
bar(b)
end
bar(a)
bar(b)
end
- meth bar(a: A)
+ fun bar(a: A)
do
if a.val > val then
a.bar(self)
end
baz
end
do
if a.val > val then
a.bar(self)
end
baz
end
- meth baz
+ fun baz
do
end
do
end
@@
-52,37
+52,37
@@
class A
end
class B
end
class B
-special A
- redef meth val: Int
+ super A
+ redef fun val: Int
do
return 1
end
do
return 1
end
- redef init
+ init
do
end
end
class C
do
end
end
class C
-special A
- redef meth val: Int
+ super A
+ redef fun val: Int
do
return 2
end
do
return 2
end
- redef init
+ init
do
end
end
class D
do
end
end
class D
-special A
- redef meth val: Int
+ super A
+ redef fun val: Int
do
return 3
end
do
return 3
end
- redef init
+ init
do
end
end
do
end
end