commit | 40ef0c6d9f9b1a4ffa978d45a216a3329eebf295 | [log] [tgz] |
---|---|---|
author | Dmitry Stefantsov <dmitryas@google.com> | Fri Jun 07 08:02:54 2019 +0000 |
committer | commit-bot@chromium.org <commit-bot@chromium.org> | Fri Jun 07 08:02:54 2019 +0000 |
tree | 376fe031b0fa63f5246cd7dc21e0b84eec784c0e | |
parent | ad38f88c59454eb54d66c91e2b2cc689a9bbfd1d [diff] |
Specify type of _location field in Widget Inspector Transformer The change in the CL prevents the widget transformer from introducing compile-time errors. Change-Id: Ib4a73eb13fb33397daeb5d17c613c42a1d1a6025 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/105245 Commit-Queue: Dmitry Stefantsov <dmitryas@google.com> Reviewed-by: Aske Simon Christensen <askesc@google.com>
diff --git a/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart b/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart index d227409..13bde9a 100644 --- a/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart +++ b/pkg/kernel/lib/transformations/track_widget_constructor_locations.dart
@@ -345,6 +345,7 @@ _hasCreationLocationClass.enclosingLibrary, ); final Field locationField = new Field(fieldName, + type: new InterfaceType(_locationClass), isFinal: true, reference: clazz.reference.canonicalName ?.getChildFromFieldWithName(fieldName)