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 <scheglov@google.com>
Reviewed-by: Brian Wilkerson <brianwilkerson@google.com>
Commit-Queue: Paul Berry <paulberry@google.com>
This commit is contained in:
Paul Berry 2020-06-11 18:42:41 +00:00 committed by commit-bot@chromium.org
parent 32559d3799
commit 6a36dbad2e

View file

@ -2,7 +2,10 @@
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
@deprecated /// This library is no longer supported, but most of the functionality it
/// provides is available through supported analyzer APIs. See specific methods
/// below for more information about their supported replacements.
@Deprecated('See package:analyzer/analyzer.dart file for details')
library analyzer; library analyzer;
import 'dart:io'; import 'dart:io';
@ -67,12 +70,12 @@ CompilationUnit parseCompilationUnit(String contents,
/// If [parseFunctionBodies] is [false] then only function signatures will be /// If [parseFunctionBodies] is [false] then only function signatures will be
/// parsed. (Currently broken; function bodies are always parsed). /// parsed. (Currently broken; function bodies are always parsed).
/// ///
/// Deprecated - please use the `parseFile2` function /// Deprecated - please use the `parseFile` function
/// (from package:analyzer/dart/analysis/utilities.dart) instead. /// (from package:analyzer/dart/analysis/utilities.dart) instead.
/// ///
/// Note that `parseFile2` does not support the `parseFunctionBodies` option; /// Note that `parseFile` does not support the `parseFunctionBodies` option;
/// callers that don't require function bodies should simply ignore them. /// callers that don't require function bodies should simply ignore them.
@Deprecated('Please use parseFile2 instead') @Deprecated('Please use parseFile instead')
CompilationUnit parseDartFile(String path, CompilationUnit parseDartFile(String path,
{bool suppressErrors = false, {bool suppressErrors = false,
bool parseFunctionBodies = true, bool parseFunctionBodies = true,