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

Unified Diff: lib/build/html_import_annotation_recorder.dart

Issue 997193004: update analyzer and code_transformers version and use mock sdk from code transformers (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: update changelog Created 5 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
« no previous file with comments | « CHANGELOG.md ('k') | lib/build/web_components.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/build/html_import_annotation_recorder.dart
diff --git a/lib/build/html_import_annotation_recorder.dart b/lib/build/html_import_annotation_recorder.dart
index c320862bae5138421d926082ffbfcc04d15f6e33..ba5d2abad5a99d35db6753f174c3bfba8e45399a 100644
--- a/lib/build/html_import_annotation_recorder.dart
+++ b/lib/build/html_import_annotation_recorder.dart
@@ -34,6 +34,10 @@ class HtmlImportAnnotationRecorder implements InitializerPlugin {
type = annotationElement.returnType;
} else if (annotationElement is PropertyAccessorElement) {
type = annotationElement.variable.propagatedType;
+ if (type == null) {
+ type = pluginData.resolver.evaluateConstant(annotationElement.library,
+ pluginData.initializer.annotationNode.name).value.type;
+ }
} else {
logger.error('Unsupported annotation type. Only constructors and '
'properties are supported as initializers.');
« no previous file with comments | « CHANGELOG.md ('k') | lib/build/web_components.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698