`const AsInvocation& as` might be nicer.