Skip to content

Commit 21c0b4a

Browse files
stereotype441Commit Queue
authored andcommitted
[analyzer] Deprecate package:analyzer/src/generated/timestamped_data.dart.
Now that dartdoc has been upgraded to dart-lang/dartdoc@d683b47 ("Stop importing TimestampedData from package:analyzer/src"), it is safe to deprecate this file. This file will be removed in analyzer 9.0.0. Change-Id: I6a6a6964704e4dd2a79876d0995dae70aa022ae8 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/447241 Commit-Queue: Konstantin Shcheglov <[email protected]> Auto-Submit: Paul Berry <[email protected]> Reviewed-by: Konstantin Shcheglov <[email protected]>
1 parent 7b30d35 commit 21c0b4a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

pkg/analyzer/lib/src/generated/engine.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ import 'package:meta/meta.dart';
1313

1414
export 'package:analyzer/dart/analysis/analysis_options.dart';
1515
export 'package:analyzer/error/listener.dart' show RecordingDiagnosticListener;
16+
export 'package:analyzer/source/timestamped_data.dart' show TimestampedData;
1617
export 'package:analyzer/src/dart/analysis/analysis_options.dart';
17-
export 'package:analyzer/src/generated/timestamped_data.dart'
18-
show TimestampedData;
1918

2019
/// A context in which a single analysis can be performed and incrementally
2120
/// maintained. The context includes such information as the version of the SDK

pkg/analyzer/lib/src/generated/timestamped_data.dart

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,15 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
// This export is needed because package `dartdoc` imports the `TimestampedData`
6-
// class from here.
5+
@Deprecated('Please use package:analyzer/source/timestamped_data.dart instead.')
6+
library;
7+
8+
// This export is needed because there are versions of package `dartdoc` that
9+
// import the `TimestampedData` class from here.
10+
//
11+
// All of those versions have an analyzer constraint < 9.0.0, so once the
12+
// analyzer version gets bumped to 9.0.0, it will be safe to remove this file.
713
//
8-
// TODO(paulberry): update dartdoc's import, so that this library can be
9-
// deprecated and eventually removed.
14+
// TODO(paulberry): remove this file in analyzer version 9.0.0.
1015

1116
export 'package:analyzer/source/timestamped_data.dart' show TimestampedData;

0 commit comments

Comments
 (0)