Get name of declaration uniformly, even for JS-style assignment declarations. by sandersn · Pull Request #15594 · microsoft/TypeScript
added 2 commits
May 4, 2017 16:12JS-style assignment declarations have a name, but it's not stored on the name property of the BinaryExpression. This commit adds `getNameOfDeclaration` to uniformly get the name of a declaration. It also reworks the declaration of `Declaration` so that accessing `name` is an error unless the type does *not* include BinaryExpression.
This was referenced
May 8, 2017
sandersn
deleted the
get-name-of-declaration-wrapper
branch
ghost
mentioned this pull request
microsoft
locked and limited conversation to collaborators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters