Fix reference to deprecated library (#52)

* Fix reference to deprecated library

* Bump analyzer version constraints
diff --git a/lib/build/html_import_annotation_recorder.dart b/lib/build/html_import_annotation_recorder.dart
index 5f2a320..8a3580c 100644
--- a/lib/build/html_import_annotation_recorder.dart
+++ b/lib/build/html_import_annotation_recorder.dart
@@ -3,7 +3,8 @@
 // BSD-style license that can be found in the LICENSE file.
 library web_components.build.html_import_recorder_inliner;
 
-import 'package:analyzer/src/generated/element.dart';
+import 'package:analyzer/dart/element/element.dart';
+import 'package:analyzer/dart/element/type.dart';
 import 'package:initialize/transformer.dart';
 import 'package:path/path.dart' as path;
 import '../src/normalize_path.dart';
diff --git a/pubspec.yaml b/pubspec.yaml
index e41161b..3c43f2c 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -10,7 +10,7 @@
   elements, by hiding DOM subtrees under shadow roots. HTML Imports let authors
   bundle code and HTML as if they were libraries.
 dependencies:
-  analyzer: '>=0.27.0 <0.30.0'
+  analyzer: '>=0.27.1 <0.30.0'
   barback: '>=0.14.2 <0.16.0'
   code_transformers: '>=0.3.0 <0.6.0'
   html: '>=0.12.0 <0.14.0'