Clean up references to deprecated code

R=jmesserly@google.com

Review URL: https://codereview.chromium.org//2325683002 .
diff --git a/lib/codegen/recorder.dart b/lib/codegen/recorder.dart
index 7d41029..29bb3bf 100644
--- a/lib/codegen/recorder.dart
+++ b/lib/codegen/recorder.dart
@@ -14,8 +14,8 @@
 /// the analyzer into pub transformers.
 library smoke.codegen.recorder;
 
-import 'package:analyzer/src/generated/element.dart';
-import 'package:analyzer/src/generated/ast.dart';
+import 'package:analyzer/dart/ast/ast.dart';
+import 'package:analyzer/dart/element/element.dart';
 import 'generator.dart';
 
 typedef String ImportUrlResolver(LibraryElement lib);
diff --git a/test/codegen/end_to_end_test.dart b/test/codegen/end_to_end_test.dart
index 77097e1..320acd4 100644
--- a/test/codegen/end_to_end_test.dart
+++ b/test/codegen/end_to_end_test.dart
@@ -13,7 +13,7 @@
 
 import 'dart:io';
 
-import 'package:analyzer/src/generated/element.dart';
+import 'package:analyzer/dart/element/element.dart';
 import 'package:smoke/codegen/generator.dart';
 import 'package:smoke/codegen/recorder.dart';
 import 'package:test/test.dart';
diff --git a/test/codegen/recorder_test.dart b/test/codegen/recorder_test.dart
index cebfdab..b2d8019 100644
--- a/test/codegen/recorder_test.dart
+++ b/test/codegen/recorder_test.dart
@@ -5,7 +5,7 @@
 @TestOn('vm')
 library smoke.test.codegen.recorder_test;
 
-import 'package:analyzer/src/generated/element.dart';
+import 'package:analyzer/dart/element/element.dart';
 import 'package:smoke/codegen/generator.dart';
 import 'package:smoke/codegen/recorder.dart';
 import 'package:test/test.dart';
diff --git a/test/codegen/testing_resolver_utils.dart b/test/codegen/testing_resolver_utils.dart
index 9a5e647..0afaf63 100644
--- a/test/codegen/testing_resolver_utils.dart
+++ b/test/codegen/testing_resolver_utils.dart
@@ -8,7 +8,7 @@
 // using the test helpers in `package:transformer_test/utils.dart`.
 library smoke.test.codegen.testing_resolver_utils;
 
-import 'package:analyzer/src/generated/element.dart';
+import 'package:analyzer/dart/element/element.dart';
 import 'package:analyzer/src/generated/engine.dart';
 import 'package:analyzer/src/generated/java_io.dart';
 import 'package:analyzer/src/generated/source.dart';