20faaa5d94
Change-Id: Ib18f554c1076f27a3f7c0df5a36410da41a1f467 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/148784 Reviewed-by: Paul Berry <paulberry@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com>
42 lines
1.6 KiB
Dart
42 lines
1.6 KiB
Dart
// Copyright (c) 2017, 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 = 2.7
|
|
|
|
/*member: main:[null]*/
|
|
main() {
|
|
emptyMap();
|
|
nullMap();
|
|
constMap();
|
|
constNullMap();
|
|
stringIntMap();
|
|
intStringMap();
|
|
constStringIntMap();
|
|
constIntStringMap();
|
|
}
|
|
|
|
/*member: emptyMap:Dictionary([subclass=JsLinkedHashMap], key: [empty], value: [null], map: {})*/
|
|
emptyMap() => {};
|
|
|
|
/*member: constMap:Dictionary([subclass=ConstantMap], key: [empty], value: [null], map: {})*/
|
|
constMap() => const {};
|
|
|
|
/*member: nullMap:Map([subclass=JsLinkedHashMap], key: [null], value: [null])*/
|
|
nullMap() => {null: null};
|
|
|
|
/*member: constNullMap:Map([subclass=ConstantMap], key: [null], value: [null])*/
|
|
constNullMap() => const {null: null};
|
|
|
|
/*member: stringIntMap:Dictionary([subclass=JsLinkedHashMap], key: [exact=JSString], value: [null|exact=JSUInt31], map: {a: [exact=JSUInt31], b: [exact=JSUInt31], c: [exact=JSUInt31]})*/
|
|
stringIntMap() => {'a': 1, 'b': 2, 'c': 3};
|
|
|
|
/*member: intStringMap:Map([subclass=JsLinkedHashMap], key: [exact=JSUInt31], value: [null|exact=JSString])*/
|
|
intStringMap() => {1: 'a', 2: 'b', 3: 'c'};
|
|
|
|
/*member: constStringIntMap:Dictionary([subclass=ConstantMap], key: [exact=JSString], value: [null|exact=JSUInt31], map: {a: [exact=JSUInt31], b: [exact=JSUInt31], c: [exact=JSUInt31]})*/
|
|
constStringIntMap() => const {'a': 1, 'b': 2, 'c': 3};
|
|
|
|
/*member: constIntStringMap:Map([subclass=ConstantMap], key: [exact=JSUInt31], value: [null|exact=JSString])*/
|
|
constIntStringMap() => const {1: 'a', 2: 'b', 3: 'c'};
|