The last read token that ends the line of self

This usually return a detached token lake a TEol or a comment. See last_token_in_line if a AST token is required.

Property definitions

nitc :: astutil $ Token :: last_real_token_in_line
	# The last read token that ends the line of `self`
	#
	# This usually return a detached token lake a TEol or a comment.
	# See `last_token_in_line` if a AST token is required.
	fun last_real_token_in_line: Token
	do
		var line = location.line_start
		var t = self
		loop
			var p = t.next_token
			if p == null or p.location.line_start != line then
				return t
			end
			t = p
		end
	end
src/astutil.nit:158,2--173,4