Move property errors to the name for the error span (#23865)

This commit is contained in:
Wesley Wigham authored and GitHub committed 2018-05-03 10:55:44 -07:00
1 parent 616e6e6ca3
commit b467cd8a99
52 files changed
+620 -297

No files matched your search

+2
View File
@@ -688,6 +688,8 @@ namespace ts {
case SyntaxKind.GetAccessor:
case SyntaxKind.SetAccessor:
case SyntaxKind.TypeAliasDeclaration:
case SyntaxKind.PropertyDeclaration:
case SyntaxKind.PropertySignature:
errorNode = (<NamedDeclaration>node).name;
break;
case SyntaxKind.ArrowFunction: