Look for a variable named name.

Return null if no such a variable is found.

Property definitions

nitc $ ScopeVisitor :: search_variable
	# Look for a variable named `name`.
	# Return null if no such a variable is found.
	fun search_variable(name: String): nullable Variable
	do
		for scope in scopes do
			var res = scope.get_variable(name)
			if res != null then
				return res
			end
		end
		return null
	end
src/semantize/scope.nit:114,2--125,4