Creation of a new attribute (AST and model representation) with the given MAttribute.

See create_attribute_from_propdef for more information.

Property definitions

nitc :: astbuilder $ ModelBuilder :: create_attribute_from_property
	# Creation of a new attribute (AST and model representation) with the given MAttribute.
	# See `create_attribute_from_propdef` for more information.
	fun create_attribute_from_property(mattribute: MAttribute, mclassdef: MClassDef, mtype: MType): AAttrPropdef do
		var attribut_def = new MAttributeDef(mclassdef, mattribute, mclassdef.location)
		attribut_def.static_mtype = mtype
		return create_attribute_from_propdef(attribut_def)
	end
src/astbuilder.nit:1095,2--1101,4