Skip to content

Commit

Permalink
Use names of accessors instead of their entire spans.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Jan 30, 2016
1 parent 3489c55 commit 2195798
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/compiler/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2195798

Please sign in to comment.