Update hasDynamicName to take well known symbols into account

This commit is contained in:
Jason Freeman
2015-02-06 21:31:34 -08:00
parent d788624332
commit 07f3641af2
19 changed files with 84 additions and 82 deletions
+3 -1
View File
@@ -843,7 +843,9 @@ module ts {
* Symbol.
*/
export function hasDynamicName(declaration: Declaration): boolean {
return declaration.name && declaration.name.kind === SyntaxKind.ComputedPropertyName;
return declaration.name &&
declaration.name.kind === SyntaxKind.ComputedPropertyName &&
!isWellKnownSymbolSyntactically((<ComputedPropertyName>declaration.name).expression);
}
export function isWellKnownSymbolSyntactically(node: Node): boolean {