Nitlanguage.org
  • Nitdoc
  • nitc
  • parser
  • parser_nodes
  • AAttrPropdef
  • init_expr

fun init_expr(v: AbstractCompilerVisitor, recv: RuntimeVariable)

nitc :: AAttrPropdef :: init_expr

  • Doc
  • Linearization

Summary

  • Property definitions

  • nitc::abstract_compiler$AAttrPropdef$init_expr

  • nitc::separate_compiler$AAttrPropdef$init_expr

Property definitions

nitc :: abstract_compiler $ AAttrPropdef :: init_expr
	fun init_expr(v: AbstractCompilerVisitor, recv: RuntimeVariable)
	do
		if has_value and not is_lazy and not is_optional and not n_expr isa ANullExpr then evaluate_expr(v, recv)
	end
src/compiler/abstract_compiler.nit:3623,2--3626,4

nitc :: separate_compiler $ AAttrPropdef :: init_expr
	redef fun init_expr(v, recv)
	do
		super
		if is_lazy and v.compiler.modelbuilder.toolcontext.opt_no_union_attribute.value then
			var guard = self.mlazypropdef.mproperty
			v.write_attribute(guard, recv, v.bool_instance(false))
		end
	end
src/compiler/separate_compiler.nit:2667,2--2674,4
Nit tools. Version .