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

Unified Diff: lib/src/utils.dart

Issue 1797063002: Resolve obvious deprecation warnings on bleeding edge (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 9 months 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
Index: lib/src/utils.dart
diff --git a/lib/src/utils.dart b/lib/src/utils.dart
index 15b06aac0c6bea4588ef64936489e754e87ce146..a5c08808ecedc5f7104baa99c66962fbdef91828 100644
--- a/lib/src/utils.dart
+++ b/lib/src/utils.dart
@@ -6,7 +6,7 @@
import 'dart:io';
import 'package:path/path.dart' as path;
-import 'package:analyzer/src/generated/ast.dart'
+import 'package:analyzer/dart/ast/ast.dart'
show
ImportDirective,
ExportDirective,
@@ -18,8 +18,12 @@ import 'package:analyzer/src/generated/ast.dart'
Expression,
SimpleIdentifier,
MethodInvocation;
+import 'package:analyzer/dart/element/element.dart';
+import 'package:analyzer/dart/element/type.dart';
import 'package:analyzer/src/generated/constant.dart' show DartObject;
-import 'package:analyzer/src/generated/element.dart';
+//TODO(leafp): Remove deprecated dependency
+//ignore: DEPRECATED_MEMBER_USE
Jennifer Messerly 2016/03/14 23:12:42 oh, I was confused because it didn't look deprecat
Leaf 2016/03/14 23:58:42 src/generated/element.dart is deprecated. I can m
+import 'package:analyzer/src/generated/element.dart' show DynamicTypeImpl;
import 'package:analyzer/src/generated/engine.dart' show AnalysisContext;
import 'package:analyzer/src/generated/error.dart' show ErrorCode;
import 'package:analyzer/src/task/dart.dart' show ParseDartTask;
« lib/src/codegen/reify_coercions.dart ('K') | « lib/src/server/dependency_graph.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698