Creation of a new class (AST and model representation) with the given name.

visibility : Define the visibility of the method. If it's null the default is public_visibility See create_class_from_mclass for more information.

Property definitions

nitc :: astbuilder $ ModelBuilder :: create_class_from_name
	# Creation of a new class (AST and model representation) with the given name.
	# `visibility` : Define the visibility of the method. If it's `null` the default is `public_visibility`
	# See `create_class_from_mclass` for more information.
	fun create_class_from_name(name: String, super_type: Array[MClassType], mmodule: MModule, visibility: nullable MVisibility): AStdClassdef do
		if visibility == null then visibility = public_visibility
		var mclass = try_get_mclass_by_name(null, mmodule, name)
		if mclass == null then mclass = new MClass(mmodule, name, mmodule.location, new Array[String], concrete_kind, visibility)
		return create_class_from_mclass(mclass, super_type, mmodule)
	end
src/astbuilder.nit:1125,2--1133,4