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

Unified Diff: pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart

Issue 2941033002: Finish strong mode cleaning of dart2js. (Closed)
Patch Set: Add bug numbers and address comments. Created 3 years, 6 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: pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
index 97d244e75234fcd3004b71934f58d9bd9e251f9a..2a2d94411b6d5519cd844981b6aeaefbadb17731 100644
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/class_emitter.dart
@@ -125,7 +125,7 @@ class ClassEmitter extends CodeEmitterHelper {
fields = container.staticFieldsForReflection;
}
- var fieldMetadata = [];
+ var fieldMetadata = <jsAst.Expression>[];
bool hasMetadata = false;
bool fieldsAdded = false;
@@ -144,7 +144,7 @@ class ClassEmitter extends CodeEmitterHelper {
// accessors at runtime.
bool needsFieldsForConstructor = !emitStatics && !classIsNative;
if (needsFieldsForConstructor || needsAccessor) {
- var metadata =
+ dynamic metadata =
task.metadataCollector.buildFieldMetadataFunction(fieldElement);
if (metadata != null) {
hasMetadata = true;

Powered by Google App Engine
This is Rietveld 408576698