In convertFunctionToEs6Class.ts, share code for getting symbol (#19160)
In convertFunctionToEs6Class.ts, share code for getting symbol (#19160)


minestarks/TypeScript,Microsoft/TypeScript,RyanCavanaugh/TypeScript,microsoft/TypeScript,nojvek/TypeScript,donaldpipowitch/TypeScript,Microsoft/TypeScript,weswigham/TypeScript,basarat/TypeScript,SaschaNaz/TypeScript,alexeagle/TypeScript,minestarks/TypeScript,TukekeSoft/TypeScript,nojvek/TypeScript,basarat/TypeScript,Eyas/TypeScript,kitsonk/TypeScript,Eyas/TypeScript,kpreisser/TypeScript,donaldpipowitch/TypeScript,SaschaNaz/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,basarat/TypeScript,weswigham/TypeScript,Eyas/TypeScript,donaldpipowitch/TypeScript,Eyas/TypeScript,kpreisser/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript,Microsoft/TypeScript,kitsonk/TypeScript,RyanCavanaugh/TypeScript,alexeagle/TypeScript,microsoft/TypeScript,TukekeSoft/TypeScript,minestarks/TypeScript,weswigham/TypeScript,basarat/TypeScript,donaldpipowitch/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,alexeagle/TypeScript,microsoft/TypeScript,SaschaNaz/TypeScript,TukekeSoft/TypeScript