In the torchlight, he caught sight of a figure whom he immediately recognized as Bill Wilkins, our local grocer.
其中的whom he immediately recognized as Bill Wilkins这个定语从句
变成陈述语序:he immediately recognized whom as Bill Wilkins
问题:as Bill Wilkins 当作宾补,还是当作状语?怎么理解?