nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: error_syntax errors on `? now
[nit.git]
/
contrib
/
neo_doxygen
/
src
/
model
/
descriptions.nit
diff --git
a/contrib/neo_doxygen/src/model/descriptions.nit
b/contrib/neo_doxygen/src/model/descriptions.nit
index
1f504ef
..
66341f3
100644
(file)
--- a/
contrib/neo_doxygen/src/model/descriptions.nit
+++ b/
contrib/neo_doxygen/src/model/descriptions.nit
@@
-16,6
+16,7
@@
module model::descriptions
import json::static
module model::descriptions
import json::static
+import json
# Documentation associated to an entity.
#
# Documentation associated to an entity.
#
@@
-50,7
+51,7
@@
import json::static
# assert doc.to_json == "[]"
# ~~~
class Documentation
# assert doc.to_json == "[]"
# ~~~
class Documentation
- super Jsonable
+ super Serializable
private var content = new JsonStringArray
private var has_brief_description: Bool = false
private var content = new JsonStringArray
private var has_brief_description: Bool = false
@@
-106,11
+107,11
@@
class Documentation
# Is the documentation empty?
fun is_empty: Bool do return content.is_empty
# Is the documentation empty?
fun is_empty: Bool do return content.is_empty
- redef fun to_json do return content.to_json
- redef fun append_json(b) do content.append_json(b)
+ redef fun serialize_to(v) do content.serialize_to v
+ redef fun accept_json_serializer(v) do content.serialize_to v
end
end
-# A `Jsonable` array of strings.
+# A `Serializable` array of strings.
private class JsonStringArray
super JsonSequenceRead[String]
super Array[String]
private class JsonStringArray
super JsonSequenceRead[String]
super Array[String]