Signed-off-by: Jean Privat <jean@pryen.org>
# therefore, you should use `is_init_for' the verify if the property is a legal constructor for a given class
var is_init: Bool writable = false
+ # The the property a 'new' contructor?
+ var is_new: Bool writable = false
+
# Is the property a legal constructor for a given class?
# As usual, visibility is not considered.
# FIXME not implemented
var mvisibility = new_property_visibility(modelbuilder, nclassdef, self.n_visibility)
mprop = new MMethod(mclassdef, name, mvisibility)
mprop.is_init = is_init
+ mprop.is_new = self isa AExternInitPropdef
self.check_redef_keyword(modelbuilder, nclassdef, n_kwredef, false, mprop)
else
if n_kwredef == null then