The first real token that starts the line of self

This could return a token that is detached from the AST. See first_token_in_line if a AST token is required.

Property definitions

nitc :: astutil $ Token :: first_real_token_in_line
	# The first real token that starts the line of `self`
	#
	# This could return a token that is detached from the AST.
	# See `first_token_in_line` if a AST token is required.
	fun first_real_token_in_line: Token
	do
		var line = location.line_start
		var t = self
		loop
			var p = t.prev_token
			if p == null or p.location.line_start != line then
				return t
			end
			t = p
		end
	end
src/astutil.nit:126,2--141,4