Further simplification

This commit is contained in:
Ron Buckton committed 2017-10-26 11:56:29 -07:00
1 parent e08f8d263f
commit 24437774a8
7 files changed
+77 -66

No files matched your search

+1 -1
View File
@@ -1137,7 +1137,7 @@ namespace ts.refactor.extractSymbol {
{type: type1, declaration: declaration1}: {type: Type, declaration?: Declaration},
{type: type2, declaration: declaration2}: {type: Type, declaration?: Declaration}) {
return compareProperties(declaration1, declaration2, "pos")
return compareProperties(declaration1, declaration2, "pos", compareValues)
|| compareStringsCaseSensitive(
type1.symbol ? type1.symbol.getName() : "",
type2.symbol ? type2.symbol.getName() : "")