/// <summary>Performs analyze of throw <paramref name="throwStatement"/>.</summary> /// <param name="throwStatement">Throw statement model to analyze.</param> public override void Visit(ThrowStatementModel throwStatement) { if (throwStatement != null && RequiresInnerExceptionPassing(throwStatement)) { var highlighting = new ThrowFromCatchWithNoInnerExceptionHighlighting(throwStatement); ServiceLocator.StageProcess.AddHighlighting(highlighting, throwStatement.DocumentRange); } }
public IncludeInnerExceptionFix(ThrowFromCatchWithNoInnerExceptionHighlighting error) { Error = error; }