is it not always the first ident in variant.span? If so, that is probably simpler than matching these tokens