model: add MMethodDef::is_abstract
authorJean Privat <jean@pryen.org>
Mon, 5 Aug 2013 17:39:33 +0000 (13:39 -0400)
committerJean Privat <jean@pryen.org>
Mon, 5 Aug 2013 18:14:11 +0000 (14:14 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

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

index 6314b14..746c127 100644 (file)
@@ -1839,6 +1839,9 @@ class MMethodDef
 
        # The signature attached to the property definition
        var msignature: nullable MSignature writable = null
+
+       # The the method definition abstract?
+       var is_abstract: Bool writable = false
 end
 
 # A local definition of an attribute
index 6b3fc22..0215897 100644 (file)
@@ -470,6 +470,7 @@ redef class AMethPropdef
 
                msignature = new MSignature(mparameters, ret_type)
                mpropdef.msignature = msignature
+               mpropdef.is_abstract = self isa ADeferredMethPropdef
 
                if nsig != null then
                        for nclosure in nsig.n_closure_decls do