| Index: pkg/analyzer/lib/src/services/lint.dart
|
| diff --git a/pkg/analyzer/lib/src/services/lint.dart b/pkg/analyzer/lib/src/services/lint.dart
|
| index de6a4b4ec81a3b9ddaaae65561c67e51b76bec6f..829b3710473cd51fdf1117c4b7fc712fc161c981 100644
|
| --- a/pkg/analyzer/lib/src/services/lint.dart
|
| +++ b/pkg/analyzer/lib/src/services/lint.dart
|
| @@ -42,16 +42,13 @@ class LintGenerator {
|
| : _linters = linters != null ? linters : LINTERS;
|
|
|
| void generate() {
|
| - PerformanceTag prevTag = PerformanceStatistics.lint.makeCurrent();
|
| - try {
|
| + PerformanceStatistics.lint.makeCurrentWhile(() {
|
| _compilationUnits.forEach((cu) {
|
| if (cu.element != null) {
|
| _generate(cu, cu.element.source);
|
| }
|
| });
|
| - } finally {
|
| - prevTag.makeCurrent();
|
| - }
|
| + });
|
| }
|
|
|
| void _generate(CompilationUnit unit, Source source) {
|
|
|