mirror of https://github.com/AMT-Cheif/drift.git
Fix new analysis warnings from Dart 3.3
This commit is contained in:
parent
d7a26a6a9a
commit
4fa75cb30b
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 &&
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ import '../utils.dart';
|
|||
void main() {
|
||||
test('parses WITH clauses', () {
|
||||
testStatement(
|
||||
'''
|
||||
'''
|
||||
WITH RECURSIVE
|
||||
cnt(x) AS (
|
||||
SELECT 1
|
||||
|
|
Loading…
Reference in New Issue