Returns the index of the last occurrence of an declaration of type T in the list, or -1 if the list does not contain any declarations of that type.
The index of the last occurrence of an declaration of type T in the list, or -1 if not found.