Minor improvement
Minor improvement

Get the `declaration` container just once instead of in three places.
(Minor change: one place used to start looking from
`declaration.parent`, but that shouldn't make any difference.)  Also,
don't pass it to the helper functions since they're local anyway.

RyanCavanaugh/TypeScript,RyanCavanaugh/TypeScript,weswigham/TypeScript,microsoft/TypeScript,kpreisser/TypeScript,nojvek/TypeScript,kitsonk/TypeScript,microsoft/TypeScript,Microsoft/TypeScript,Microsoft/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,microsoft/TypeScript,kitsonk/TypeScript,nojvek/TypeScript,Microsoft/TypeScript,nojvek/TypeScript,nojvek/TypeScript,kpreisser/TypeScript,SaschaNaz/TypeScript,SaschaNaz/TypeScript,weswigham/TypeScript,kpreisser/TypeScript,kitsonk/TypeScript,RyanCavanaugh/TypeScript,SaschaNaz/TypeScript