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

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

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: