complete migration of flutter repo to Object.hash* (#99505)
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
// found in the LICENSE file.
|
||||
|
||||
import 'dart:html' as html;
|
||||
import 'dart:ui';
|
||||
|
||||
import 'package:collection/collection.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
@@ -33,7 +32,7 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
|
||||
packageScheme: 'package',
|
||||
package: 'packages',
|
||||
packagePath: 'web_integration/stack_trace.dart',
|
||||
line: 120,
|
||||
line: 119,
|
||||
column: 3,
|
||||
className: '<unknown>',
|
||||
method: 'baz',
|
||||
@@ -44,7 +43,7 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
|
||||
packageScheme: 'package',
|
||||
package: 'packages',
|
||||
packagePath: 'web_integration/stack_trace.dart',
|
||||
line: 115,
|
||||
line: 114,
|
||||
column: 3,
|
||||
className: '<unknown>',
|
||||
method: 'bar',
|
||||
@@ -55,7 +54,7 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
|
||||
packageScheme: 'package',
|
||||
package: 'packages',
|
||||
packagePath: 'web_integration/stack_trace.dart',
|
||||
line: 110,
|
||||
line: 109,
|
||||
column: 3,
|
||||
className: '<unknown>',
|
||||
method: 'foo',
|
||||
@@ -154,7 +153,7 @@ class StackFrameEquality implements Equality<StackFrame> {
|
||||
// TODO(dnfield): This ignore shouldn't be necessary, see https://github.com/dart-lang/sdk/issues/46477
|
||||
@override
|
||||
int hash(StackFrame e) { // ignore: avoid_renaming_method_parameters
|
||||
return hashValues(e.number, e.packageScheme, e.package, e.packagePath, e.line, e.column, e.className, e.method);
|
||||
return Object.hash(e.number, e.packageScheme, e.package, e.packagePath, e.line, e.column, e.className, e.method);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user