Skip to content

Commit

Permalink
Fix diagnostic location.
Browse files Browse the repository at this point in the history
  • Loading branch information
333fred committed Aug 10, 2017
1 parent 7734a6f commit ac280f3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private void AnalyzeOperation(OperationAnalysisContext context, INamedTypeSymbol

var allLocations = ImmutableArray.Create(
ifOperation.Syntax.GetLocation(),
throwOperation.Expression.Syntax.GetLocation(),
((IThrowExpression)throwOperation.Expression).Expression.Syntax.GetLocation(),
assignmentExpression.Value.Syntax.GetLocation());

var descriptor = GetDescriptorWithSeverity(option.Notification.Value);
Expand Down

0 comments on commit ac280f3

Please sign in to comment.