nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: transform all old writable in annotations
[nit.git]
/
lib
/
trees
/
abstract_tree.nit
diff --git
a/lib/trees/abstract_tree.nit
b/lib/trees/abstract_tree.nit
index
0b79490
..
d05663e
100644
(file)
--- a/
lib/trees/abstract_tree.nit
+++ b/
lib/trees/abstract_tree.nit
@@
-28,7
+28,7
@@
abstract class TreeMap[K: Comparable, E]
protected type N: TreeNode[K, E]
# The `root` node of the tree (null if tree is empty)
protected type N: TreeNode[K, E]
# The `root` node of the tree (null if tree is empty)
- protected var root: nullable N protected writable = null
+ protected var root: nullable N = null is protected writable
# Display the tree in a gaphical windows
# Graphviz with a working -Txlib is expected
# Display the tree in a gaphical windows
# Graphviz with a working -Txlib is expected
@@
-51,7
+51,7
@@
class TreeNode[K: Comparable, E]
var value: E
# Direct parent of this node (null if the node is root)
var value: E
# Direct parent of this node (null if the node is root)
- var parent: nullable SELF writable = null
+ var parent: nullable SELF = null is writable
redef fun to_s do return "\{{value or else ""}\}"
redef fun to_s do return "\{{value or else ""}\}"