Fix new analysis warnings from Dart 3.3

This commit is contained in:
Simon Binder 2024-02-19 21:46:55 +01:00
parent d7a26a6a9a
commit 4fa75cb30b
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
7 changed files with 10 additions and 10 deletions

View File

@ -636,7 +636,7 @@ class _SubqueryExpression<R extends Object> extends Expression<R> {
int get hashCode => statement.hashCode;
@override
bool operator ==(Object? other) {
bool operator ==(Object other) {
return other is _SubqueryExpression && other.statement == statement;
}
}

View File

@ -81,7 +81,7 @@ class ResolvedType {
}
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
other is ResolvedType &&
other.type == type &&
@ -112,7 +112,7 @@ abstract class TypeHint {
@override
int get hashCode => runtimeType.hashCode;
@override
bool operator ==(dynamic other) => other.runtimeType == runtimeType;
bool operator ==(Object other) => other.runtimeType == runtimeType;
}
/// Type hint to mark that this type will contain a boolean value.
@ -181,7 +181,7 @@ class ResolveResult {
}
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
other is ResolveResult &&
other.type == type &&

View File

@ -64,7 +64,7 @@ class SimpleName extends DeclaredStatementIdentifier {
int get hashCode => name.hashCode;
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other is SimpleName && other.name == name);
}
@ -87,7 +87,7 @@ class SpecialStatementIdentifier extends DeclaredStatementIdentifier {
String get name => specialName;
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return identical(this, other) ||
(other is SpecialStatementIdentifier &&
other.specialName == specialName);

View File

@ -241,7 +241,7 @@ class FrameBoundary {
}
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
if (identical(this, other)) return true;
if (other.runtimeType != runtimeType) return false;

View File

@ -56,7 +56,7 @@ abstract class TriggerTarget extends AstNode {
int get hashCode => runtimeType.hashCode;
@override
bool operator ==(dynamic other) => other.runtimeType == runtimeType;
bool operator ==(Object other) => other.runtimeType == runtimeType;
@override
Iterable<AstNode> get childNodes => const Iterable.empty();

View File

@ -68,7 +68,7 @@ class TableWrite {
int get hashCode => 37 * table.hashCode + kind.hashCode;
@override
bool operator ==(dynamic other) {
bool operator ==(Object other) {
return other is TableWrite && other.table == table && other.kind == kind;
}
}

View File

@ -6,7 +6,7 @@ import '../utils.dart';
void main() {
test('parses WITH clauses', () {
testStatement(
'''
'''
WITH RECURSIVE
cnt(x) AS (
SELECT 1