private void InitAnalyzer() { DiagnosticInformation.Reset(); var stopwatch = Stopwatch.StartNew(); _document.Save(); stopwatch.Stop(); DiagnosticInformation.TotalScanTimeSpan = stopwatch.Elapsed; _tokenContext.Clear(); _ranges.Clear(); }