[dart2js] migrate kernel/element_map_impl to null safety

Change-Id: I34ca5b75240944d39dc88d5031fdac195563b67d
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/260285
Reviewed-by: Mayank Patke <fishythefish@google.com>
Reviewed-by: Nate Biggs <natebiggs@google.com>
This commit is contained in:
Sigmund Cherem 2022-09-23 00:28:58 +00:00 committed by Commit Bot
parent 01f3d27c1e
commit 8b49851cb8
3 changed files with 326 additions and 323 deletions

File diff suppressed because it is too large Load diff

View file

@ -108,7 +108,7 @@ abstract class KernelToElementMapForDeferredLoading {
{bool requireConstant = true,
bool implicitNull = false,
bool checkCasts = true});
ImportEntity getImport(ir.LibraryDependency? node);
ImportEntity? getImport(ir.LibraryDependency? node);
ir.Member getMemberNode(MemberEntity member);
ir.StaticTypeContext getStaticTypeContext(MemberEntity member);
}

View file

@ -111,7 +111,7 @@ abstract class KFunction extends KMember
@override
final AsyncMarker asyncMarker;
KFunction(super.library, KClass super.enclosingClass, super.name,
KFunction(super.library, super.enclosingClass, super.name,
this.parameterStructure, this.asyncMarker,
{super.isStatic, this.isExternal = false});
}
@ -199,7 +199,7 @@ class KGetter extends KFunction {
@override
final bool isAbstract;
KGetter(KLibrary library, KClass enclosingClass, Name name,
KGetter(KLibrary library, KClass? enclosingClass, Name name,
AsyncMarker asyncMarker,
{required bool isStatic,
required bool isExternal,
@ -219,7 +219,7 @@ class KSetter extends KFunction {
@override
final bool isAbstract;
KSetter(KLibrary library, KClass enclosingClass, Name name,
KSetter(KLibrary library, KClass? enclosingClass, Name name,
{required bool isStatic,
required bool isExternal,
required this.isAbstract})
@ -243,7 +243,7 @@ class KField extends KMember implements FieldEntity, IndexedField {
@override
final bool isConst;
KField(super.library, KClass super.enclosingClass, super.name,
KField(super.library, super.enclosingClass, super.name,
{required super.isStatic,
required this.isAssignable,
required this.isConst});