model: add `MMethodDef::is_intern`
authorJean Privat <jean@pryen.org>
Wed, 19 Mar 2014 13:39:20 +0000 (09:39 -0400)
committerJean Privat <jean@pryen.org>
Tue, 1 Apr 2014 15:06:55 +0000 (11:06 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/model/model.nit
src/modelize_property.nit

index 79fee97..85d281e 100644 (file)
@@ -1822,8 +1822,11 @@ class MMethodDef
        # The signature attached to the property definition
        var msignature: nullable MSignature writable = null
 
-       # The the method definition abstract?
+       # Is the method definition abstract?
        var is_abstract: Bool writable = false
+
+       # Is the method definition intern?
+       var is_intern writable = false
 end
 
 # A local definition of an attribute
index c7f8e8b..9667d77 100644 (file)
@@ -554,6 +554,7 @@ redef class AMethPropdef
                msignature = new MSignature(mparameters, ret_type)
                mpropdef.msignature = msignature
                mpropdef.is_abstract = self isa ADeferredMethPropdef
+               mpropdef.is_intern = self isa AInternMethPropdef
        end
 
        redef fun check_signature(modelbuilder, nclassdef)