The phrase
"eponymous role" refers to a situation where a person plays a character in a movie, show, or play, and that character has the same name as the actor or actress playing it. In other words, the actor's name and the character's name are the same.
Full definition