Information to display on a node

Refine this method to add additional information on each node type.

Property definitions

nitc $ ANode :: dump_info
	# Information to display on a node
	#
	# Refine this method to add additional information on each node type.
	fun dump_info(v: ASTDump): String do return ""
src/parser/parser_nodes.nit:55,2--58,47

nitc :: modelbuilder_base $ ANode :: dump_info
	redef fun dump_info(v) do
		var res = super
		if is_broken then
			res += v.red("*broken*")
		end
		return res
	end
src/modelbuilder_base.nit:546,2--552,4

nitc $ Token :: dump_info
	redef fun dump_info(v) do return " {text.escape_to_c}"
src/parser/parser_nodes.nit:385,2--55

nitc :: typing $ AExpr :: dump_info
	redef fun dump_info(v) do
		var res = super
		var mtype = self.mtype
		if mtype != null then
			res += v.yellow(":{mtype}")
		end
		var ict = self.implicit_cast_to
		if ict != null then
			res += v.yellow("(.as({ict}))")
		end
		return res
	end
src/semantize/typing.nit:1029,2--1040,4

nitc :: modelbuilder_base $ AType :: dump_info
	redef fun dump_info(v) do
		var res = super
		var mtype = self.mtype
		if mtype != null then
			res += v.yellow(":{mtype}")
		end
		return res
	end
src/modelbuilder_base.nit:562,2--569,4

nitc :: typing $ ASendExpr :: dump_info
	redef fun dump_info(v) do
		var res = super
		var callsite = self.callsite
		if callsite != null then
			res += v.yellow(" call="+callsite.dump_info(v))
		end
		return res
	end
src/semantize/typing.nit:2052,2--2059,4

nitc :: typing $ ASuperExpr :: dump_info
	redef fun dump_info(v) do
		var res = super
		var callsite = self.callsite
		if callsite != null then
			res += v.yellow(" super-init="+callsite.dump_info(v))
		end
		var mpropdef = self.mpropdef
		if mpropdef != null then
			res += v.yellow(" call-next-method="+mpropdef.to_s)
		end
		return res
	end
src/semantize/typing.nit:2383,2--2394,4

nitc :: typing $ ANewExpr :: dump_info
	redef fun dump_info(v) do
		var res = super
		var callsite = self.callsite
		if callsite != null then
			res += v.yellow(" call="+callsite.dump_info(v))
		end
		return res
	end
src/semantize/typing.nit:2476,2--2483,4

nitc :: typing $ AAttrFormExpr :: dump_info
	redef fun dump_info(v) do
		var res = super
		var mproperty = self.mproperty
		var attr_type = self.attr_type
		if mproperty != null then
			res += v.yellow(" attr={mproperty}:{attr_type or else "BROKEN"}")
		end
		return res
	end
src/semantize/typing.nit:2525,2--2533,4

nitc :: typing $ AIsaExpr :: dump_info
	redef fun dump_info(v) do
		var res = super
		var mtype = self.cast_type
		if mtype != null then
			res += v.yellow(".as({mtype})")
		end
		return res
	end
src/semantize/typing.nit:1861,2--1868,4