Skip to content

Commit

Permalink
chore(smithy,auth): Dart 3.3.0 Beta Analysis Errors (#4354)
Browse files Browse the repository at this point in the history
  • Loading branch information
Equartey authored Jan 17, 2024
1 parent f60e65b commit e92693b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ final class ASFDeviceInfoWindows extends ASFDeviceInfoPlatform {
final langCodepageArr = lpTranslate.value;
final n = lenTranslate.value / sizeOf<_LANGANDCODEPAGE>();
final langCodepages = [
// TODO(equartey): `.elementAt(i)` is depreciated in Dart 3.3.0. Use `(langCodepageArr + i).ref` when min Dart version is 3.3.0 or higher
// ignore: deprecated_member_use
for (var i = 0; i < n; i++) langCodepageArr.elementAt(i).ref,
];
for (final _LANGANDCODEPAGE(:wLanguage, :wCodepage) in langCodepages) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class NamedMembersMap extends DelegatingMap<String, MemberShape> {
NamedMembersMap(super.members);

@override
bool operator ==(Object? other) =>
bool operator ==(Object other) =>
identical(this, other) ||
other is NamedMembersMap &&
const MapEquality<String, MemberShape>().equals(this, other);
Expand Down
2 changes: 1 addition & 1 deletion packages/smithy/smithy/lib/src/ast/shapes/shape_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ShapeMap extends DelegatingMap<ShapeId, Shape> {
ShapeMap(super.shapes);

@override
bool operator ==(Object? other) =>
bool operator ==(Object other) =>
identical(this, other) ||
other is ShapeMap &&
const MapEquality<ShapeId, Shape>().equals(this, other);
Expand Down
2 changes: 1 addition & 1 deletion packages/smithy/smithy/lib/src/ast/shapes/trait_map.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class TraitMap extends DelegatingMap<ShapeId, Trait> {
T expectTrait<T extends Trait>() => values.firstWhere((t) => t is T) as T;

@override
bool operator ==(Object? other) =>
bool operator ==(Object other) =>
identical(this, other) ||
other is TraitMap &&
const MapEquality<ShapeId, Trait>().equals(this, other);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class ParameterLocation {
ParameterLocation._(val & other.val);

@override
bool operator ==(Object? other) =>
bool operator ==(Object other) =>
identical(this, other) || other is ParameterLocation && val == other.val;

@override
Expand Down

0 comments on commit e92693b

Please sign in to comment.