| Index: pkg/compiler/lib/src/js_backend/js_interop_analysis.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart b/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart
|
| index e2ebe39130a3b4ea5222bcd94f3abdba770da85f..448f97992225ff4ddf68fdf4c064f58cb67f2812 100644
|
| --- a/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/js_interop_analysis.dart
|
| @@ -5,7 +5,6 @@
|
| /// Analysis to determine how to generate code for typed JavaScript interop.
|
| library compiler.src.js_backend.js_interop_analysis;
|
|
|
| -import '../common.dart';
|
| import '../constants/values.dart'
|
| show ConstantValue, ConstructedConstantValue, StringConstantValue;
|
| import '../diagnostics/messages.dart' show MessageKind;
|
| @@ -55,8 +54,6 @@ class JsInteropAnalysis {
|
|
|
| void processJsInteropAnnotation(Element e) {
|
| for (MetadataAnnotation annotation in e.implementation.metadata) {
|
| - // TODO(johnniwinther): Avoid processing unresolved elements.
|
| - if (annotation.constant == null) continue;
|
| ConstantValue constant =
|
| backend.compiler.constants.getConstantValue(annotation.constant);
|
| if (constant == null || constant is! ConstructedConstantValue) continue;
|
|
|