Use names of accessors instead of their entire spans.

This commit is contained in:
Daniel Rosenwasser
2016-01-28 17:38:43 -08:00
parent 3489c55b59
commit 219579881e

View File

@@ -387,6 +387,8 @@ namespace ts {
case SyntaxKind.FunctionDeclaration:
case SyntaxKind.FunctionExpression:
case SyntaxKind.MethodDeclaration:
case SyntaxKind.GetAccessor:
case SyntaxKind.SetAccessor:
case SyntaxKind.TypeAliasDeclaration:
errorNode = (<Declaration>node).name;
break;