f7b6f0cf1c
Clean up the VM's dart:core and dart:async library patches so that
they are clean according to the patching rules implemented in the
analyzer. Specifically:
- If a member is patched in a patch file, it must be declared external
in the SDK.
- If a member is introduced in a patch file, it must be private.
- A non-private superclass member cannot be overridden in a patch
file.
BUG=
R=lrn@google.com, sigmund@google.com
Review-Url: https://codereview.chromium.org/2563633002 .
15 lines
428 B
Dart
15 lines
428 B
Dart
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// Dart core library.
|
|
|
|
@patch class Null {
|
|
static const _HASH_CODE = 2011; // The year Dart was announced and a prime.
|
|
|
|
@patch
|
|
int get hashCode => _HASH_CODE;
|
|
|
|
int get _identityHashCode => _HASH_CODE;
|
|
}
|