Nitlanguage.org
  • Nitdoc
  • nitc
  • model
  • model
  • MPropDef
  • c_name=

protected fun c_name=(c_name: String)

nitc :: MPropDef :: c_name=

  • Doc
  • Linearization

Summary

  • Property definitions

  • nitc$MPropDef$c_name=

Property definitions

nitc $ MPropDef :: c_name=
	redef var c_name is lazy do
		var res = new FlatBuffer
		res.append mclassdef.c_name
		res.append "___"
		if mclassdef.mclass == mproperty.intro_mclassdef.mclass then
			res.append name.to_cmangle
		else
			if mclassdef.mmodule != mproperty.intro_mclassdef.mmodule then
				res.append mproperty.intro_mclassdef.mmodule.c_name
				res.append "__"
			end
			res.append mproperty.intro_mclassdef.name.to_cmangle
			res.append "__"
			res.append mproperty.name.to_cmangle
		end
		return res.to_s
	end
src/model/model.nit:2590,2--2606,4
Nit tools. Version .