Addresses ROOT-6534: support closing tags for field and method.