Add expr at the end of the block

REQUIRE: self isa ABlockExpr

Note: this method, aimed to ABlockExpr is promoted to AExpr because of the limitations of the hierarchies generated by sablecc3

Property definitions

nitc :: astbuilder $ AExpr :: add
	# Add `expr` at the end of the block
	#
	# REQUIRE: self isa ABlockExpr
	#
	# Note: this method, aimed to `ABlockExpr` is promoted to `AExpr` because of the limitations of the hierarchies generated by sablecc3
	fun add(expr: AExpr)
	do
		print "add not implemented in {inspect}"
		abort
	end
src/astbuilder.nit:261,2--270,4

nitc :: astbuilder $ ABlockExpr :: add
	redef fun add(expr)
	do
		n_expr.add expr
		expr.parent = self
	end
src/astbuilder.nit:797,2--801,4

nitc :: astbuilder $ ADoExpr :: add
	redef fun add(expr)
	do
		n_block.add expr
	end
src/astbuilder.nit:468,2--471,4

nitc :: astbuilder $ ALoopExpr :: add
	redef fun add(expr)
	do
		n_block.add expr
	end
src/astbuilder.nit:442,2--445,4