Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Unified Diff: pkg/analyzer_cli/lib/src/analyzer_impl.dart

Issue 1502213002: Remove deprecated code (Closed) Base URL: https://github.com/dart-lang/sdk.git@analyzer-breaking-0.27
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analyzer/test/generated/test_support.dart ('k') | pkg/analyzer_cli/test/all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer_cli/lib/src/analyzer_impl.dart
diff --git a/pkg/analyzer_cli/lib/src/analyzer_impl.dart b/pkg/analyzer_cli/lib/src/analyzer_impl.dart
index 32d5f3792c89ce7552ff5b565028e5f09037a305..e48d78c9a35df63c72c64989638a2d44973f0f73 100644
--- a/pkg/analyzer_cli/lib/src/analyzer_impl.dart
+++ b/pkg/analyzer_cli/lib/src/analyzer_impl.dart
@@ -20,11 +20,11 @@ import 'package:analyzer_cli/src/driver.dart';
import 'package:analyzer_cli/src/error_formatter.dart';
import 'package:analyzer_cli/src/options.dart';
-DirectoryBasedDartSdk sdk;
-
/// The maximum number of sources for which AST structures should be kept in the cache.
const int _maxCacheSize = 512;
+DirectoryBasedDartSdk sdk;
+
int currentTimeMillis() => new DateTime.now().millisecondsSinceEpoch;
/// Analyzes single library [File].
@@ -278,26 +278,10 @@ class StdLogger extends Logger {
}
@override
- void logError2(String message, Object exception) {
- errorSink.writeln(message);
- if (exception != null) {
- errorSink.writeln(exception.toString());
- }
- }
-
- @override
void logInformation(String message, [CaughtException exception]) {
outSink.writeln(message);
if (exception != null) {
outSink.writeln(exception);
}
}
-
- @override
- void logInformation2(String message, Object exception) {
- outSink.writeln(message);
- if (exception != null) {
- outSink.writeln(exception.toString());
- }
- }
}
« no previous file with comments | « pkg/analyzer/test/generated/test_support.dart ('k') | pkg/analyzer_cli/test/all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698