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 .
18 lines
533 B
Dart
18 lines
533 B
Dart
// Copyright (c) 2012, 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 bool {
|
|
|
|
@patch const factory bool.fromEnvironment(String name,
|
|
{bool defaultValue: false})
|
|
native "Bool_fromEnvironment";
|
|
|
|
@patch
|
|
int get hashCode => this ? 1231 : 1237;
|
|
|
|
int get _identityHashCode => this ? 1231 : 1237;
|
|
}
|