nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
227859d
)
model: intro a service to get the `Pointer` type
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 22 Jul 2014 17:31:21 +0000
(13:31 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 9 Sep 2014 15:58:20 +0000
(11:58 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
src/model/model.nit
patch
|
blob
|
history
diff --git
a/src/model/model.nit
b/src/model/model.nit
index
f3c3164
..
fe4eade
100644
(file)
--- a/
src/model/model.nit
+++ b/
src/model/model.nit
@@
-216,6
+216,10
@@
redef class MModule
private var object_type_cache: nullable MClassType
+ # The type `Pointer`, super class to all extern classes
+ fun pointer_type: MClassType
+ is cached do return self.get_primitive_class("Pointer").mclass_type
+
# The primitive type `Bool`
fun bool_type: MClassType
do