2012-08-18 03:25:44 +00:00
|
|
|
// 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.
|
|
|
|
|
2017-10-05 14:05:50 +00:00
|
|
|
// part of "core_patch.dart";
|
|
|
|
|
2018-08-16 15:07:51 +00:00
|
|
|
@pragma("vm:entry-point")
|
2012-08-23 00:03:40 +00:00
|
|
|
class _WeakProperty {
|
|
|
|
factory _WeakProperty(key, value) => _new(key, value);
|
2012-08-18 03:25:44 +00:00
|
|
|
|
2012-09-07 11:50:07 +00:00
|
|
|
get key => _getKey();
|
|
|
|
get value => _getValue();
|
2012-08-23 00:03:40 +00:00
|
|
|
set value(value) => _setValue(value);
|
2012-08-18 03:25:44 +00:00
|
|
|
|
2012-08-23 00:03:40 +00:00
|
|
|
static _WeakProperty _new(key, value) native "WeakProperty_new";
|
2012-08-18 03:25:44 +00:00
|
|
|
|
|
|
|
_getKey() native "WeakProperty_getKey";
|
|
|
|
_getValue() native "WeakProperty_getValue";
|
2012-08-23 00:03:40 +00:00
|
|
|
_setValue(value) native "WeakProperty_setValue";
|
2012-08-18 03:25:44 +00:00
|
|
|
}
|