nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contrib/nitrpg: add a README file
[nit.git]
/
src
/
nitserial.nit
diff --git
a/src/nitserial.nit
b/src/nitserial.nit
index
4953156
..
ea2e4b4
100644
(file)
--- a/
src/nitserial.nit
+++ b/
src/nitserial.nit
@@
-36,16
+36,16
@@
import template
class NitModule
super Template
class NitModule
super Template
- var header: nullable Streamable = null
+ var header: nullable Writable = null
# The module's name
# The module's name
- var name: Streamable
+ var name: Writable
# Imports from this module
# Imports from this module
- var imports = new Array[Streamable]
+ var imports = new Array[Writable]
# Main content of this module
# Main content of this module
- var content = new Array[Streamable]
+ var content = new Array[Writable]
redef fun rendering
do
redef fun rendering
do
@@
-78,7
+78,7
@@
end
redef class MModule
# Get the type of the class `Serializable`
redef class MModule
# Get the type of the class `Serializable`
- fun serializable_type: MClassType is cached do
+ var serializable_type: MClassType is lazy do
return self.get_primitive_class("Serializable").mclass_type
end
end
return self.get_primitive_class("Serializable").mclass_type
end
end