Skip to content

Commit 6a36dba

Browse files
stereotype441commit-bot@chromium.org
authored andcommitted
Clarify deprecation notices for package:analyzer/analyzer.dart
Change-Id: I487360347f7e8b8f9aa513ed9f638a3af912e3a2 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/150960 Reviewed-by: Konstantin Shcheglov <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Paul Berry <[email protected]>
1 parent 32559d3 commit 6a36dba

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

pkg/analyzer/lib/analyzer.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
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-
@deprecated
5+
/// This library is no longer supported, but most of the functionality it
6+
/// provides is available through supported analyzer APIs. See specific methods
7+
/// below for more information about their supported replacements.
8+
@Deprecated('See package:analyzer/analyzer.dart file for details')
69
library analyzer;
710

811
import 'dart:io';
@@ -67,12 +70,12 @@ CompilationUnit parseCompilationUnit(String contents,
6770
/// If [parseFunctionBodies] is [false] then only function signatures will be
6871
/// parsed. (Currently broken; function bodies are always parsed).
6972
///
70-
/// Deprecated - please use the `parseFile2` function
73+
/// Deprecated - please use the `parseFile` function
7174
/// (from package:analyzer/dart/analysis/utilities.dart) instead.
7275
///
73-
/// Note that `parseFile2` does not support the `parseFunctionBodies` option;
76+
/// Note that `parseFile` does not support the `parseFunctionBodies` option;
7477
/// callers that don't require function bodies should simply ignore them.
75-
@Deprecated('Please use parseFile2 instead')
78+
@Deprecated('Please use parseFile instead')
7679
CompilationUnit parseDartFile(String path,
7780
{bool suppressErrors = false,
7881
bool parseFunctionBodies = true,

0 commit comments

Comments
 (0)