Collect the length (in Char) of the node.

Property definitions

nitc :: pretty $ ANode :: collect_length
	# Collect the length (in `Char`) of the node.
	private fun collect_length: Int is abstract
src/pretty.nit:323,2--324,44

nitc :: pretty $ Token :: collect_length
	redef fun collect_length do return text.length
src/pretty.nit:354,2--47

nitc :: pretty $ Prod :: collect_length
	redef fun collect_length do
		var res = 0
		if start_token == null or last_token == null then return res
		var token = start_token

		while token != last_token do
			res += token.text.length
			token = token.next_token
		end

		res += token.text.length
		return res
	end
src/pretty.nit:391,2--403,4