nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
neo: Correct the documentation of neo.nit according to PR #734.
[nit.git]
/
lib
/
ropes_debug.nit
diff --git
a/lib/ropes_debug.nit
b/lib/ropes_debug.nit
index
b9ba5ab
..
a122a02
100644
(file)
--- a/
lib/ropes_debug.nit
+++ b/
lib/ropes_debug.nit
@@
-53,13
+53,24
@@
redef class Concat
end
end
end
end
+redef class FlatText
+ fun to_dot(s: String): String is abstract
+end
+
redef class FlatString
redef class FlatString
- fun to_dot(s: String): String
+ redef fun to_dot(s: String): String
do
return s + "n{object_id} [label=\"FlatString\\nindex_from = {index_from}\\nindex_to = {index_to}\\nNativeString = {items.to_s_with_length(items.cstring_length)}\"];\n"
end
end
do
return s + "n{object_id} [label=\"FlatString\\nindex_from = {index_from}\\nindex_to = {index_to}\\nNativeString = {items.to_s_with_length(items.cstring_length)}\"];\n"
end
end
+redef class FlatBuffer
+ redef fun to_dot(s: String): String
+ do
+ return s + "n{object_id} [label=\"FlatBuffer\\length = {length}\\ncapacity = {capacity}\\nitems = {items.to_s_with_length(items.cstring_length)}\"];\n"
+ end
+end
+
redef class RopeString
redef fun to_dot(filepath: String)
do
redef class RopeString
redef fun to_dot(filepath: String)
do