Skip to content

Commit b44ff92

Browse files
scheglovCommit Queue
authored andcommitted
Fine. Make LibraryElementImpl.fieldNameNonPromotabilityInfo @trackedDirectlyOpaque
I don't expect that it is used for any other library than the one we are resolving. So, recorded opaque API usage will be ignored. Change-Id: Id914e9eb498b769bbffe1cc77a1d118bb8d36c17 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/449923 Commit-Queue: Konstantin Shcheglov <[email protected]> Reviewed-by: Paul Berry <[email protected]>
1 parent 6e9b3a1 commit b44ff92

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/analyzer/lib/src/dart/element/element.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6171,8 +6171,13 @@ class LibraryElementImpl extends ElementImpl
61716171
///
61726172
/// If a field in the library has a private name and that name does not appear
61736173
/// as a key in this map, the field is promotable.
6174+
@trackedDirectlyOpaque
61746175
Map<String, FieldNameNonPromotabilityInfo> get fieldNameNonPromotabilityInfo {
61756176
_ensureReadResolution();
6177+
globalResultRequirements?.recordOpaqueApiUse(
6178+
this,
6179+
'fieldNameNonPromotabilityInfo',
6180+
);
61766181
return _fieldNameNonPromotabilityInfo!;
61776182
}
61786183

0 commit comments

Comments
 (0)