Rename symbol.name to escapedName and make name unescaped (#17412)

This commit is contained in:
Andy authored and GitHub committed 2017-07-25 14:22:26 -07:00
1 parent e515151ba4
commit 30d973bdcb
17 files changed
+147 -142

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@ namespace ts.NavigateTo {
if (decl.kind === SyntaxKind.ImportClause || decl.kind === SyntaxKind.ImportSpecifier || decl.kind === SyntaxKind.ImportEqualsDeclaration) {
const importer = checker.getSymbolAtLocation((decl as NamedDeclaration).name);
const imported = checker.getAliasedSymbol(importer);
return importer.name !== imported.name;
return importer.escapedName !== imported.escapedName;
}
else {
return true;