Skip to content

Commit d9b69e9

Browse files
mit-mitCommit Bot
authored and
Commit Bot
committed
Add deprecation warnings
This merely ports the changes already made to the other analyzer binaries: https://dart-review.googlesource.com/c/sdk/+/219702 Change-Id: If848b164eff7d9bf166734aaad437749e44b04a4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/229143 Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Michael Thomsen <mit@google.com>
1 parent def9a76 commit d9b69e9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

sdk/bin/dartanalyzer_sdk

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
# Run dartanalyzer.dart on the Dart VM. This script assumes the Dart SDK's
77
# directory structure.
88

9+
echo "Warning: 'dartanalyzer' is deprecated. Please use 'dart analyze'." 1>&2
10+
911
function follow_links() {
1012
file="$1"
1113
while [ -h "$file" ]; do

sdk/bin/dartanalyzer_sdk.bat

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ REM Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
33
REM for details. All rights reserved. Use of this source code is governed by a
44
REM BSD-style license that can be found in the LICENSE file.
55

6+
echo Warning: 'dartanalyzer' is deprecated. Please use 'dart analyze'. 1>&2
7+
68
setlocal
79
rem Handle the case where dart-sdk/bin has been symlinked to.
810
set DIR_NAME_WITH_SLASH=%~dp0

0 commit comments

Comments
 (0)