Skip to content

Commit 40ef0c6

Browse files
Dmitry Stefantsovcommit-bot@chromium.org
authored andcommitted
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 <[email protected]> Reviewed-by: Aske Simon Christensen <[email protected]>
1 parent ad38f88 commit 40ef0c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/kernel/lib/transformations/track_widget_constructor_locations.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,7 @@ class WidgetCreatorTracker {
345345
_hasCreationLocationClass.enclosingLibrary,
346346
);
347347
final Field locationField = new Field(fieldName,
348+
type: new InterfaceType(_locationClass),
348349
isFinal: true,
349350
reference: clazz.reference.canonicalName
350351
?.getChildFromFieldWithName(fieldName)

0 commit comments

Comments
 (0)