553ac951b3
Change-Id: I5d4c0b4d15a05cfc30d87003785ca841c46b1a0f Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/426583 Reviewed-by: Stephen Adams <sra@google.com>
40 lines
2.4 KiB
Dart
40 lines
2.4 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.
|
|
|
|
/*member: main:[null|powerset={null}]*/
|
|
main() {
|
|
emptyMap();
|
|
nullMap();
|
|
constMap();
|
|
constNullMap();
|
|
stringIntMap();
|
|
intStringMap();
|
|
constStringIntMap();
|
|
constIntStringMap();
|
|
}
|
|
|
|
/*member: emptyMap:Dictionary([subclass=JsLinkedHashMap|powerset={N}{O}{N}], key: [empty|powerset=empty], value: [null|powerset={null}], map: {}, powerset: {N}{O}{N})*/
|
|
emptyMap() => {};
|
|
|
|
/*member: constMap:Dictionary([subclass=ConstantMap|powerset={N}{O}{N}], key: [empty|powerset=empty], value: [null|powerset={null}], map: {}, powerset: {N}{O}{N})*/
|
|
constMap() => const {};
|
|
|
|
/*member: nullMap:Map([subclass=JsLinkedHashMap|powerset={N}{O}{N}], key: [null|powerset={null}], value: [null|powerset={null}], powerset: {N}{O}{N})*/
|
|
nullMap() => {null: null};
|
|
|
|
/*member: constNullMap:Map([subclass=ConstantMap|powerset={N}{O}{N}], key: [null|powerset={null}], value: [null|powerset={null}], powerset: {N}{O}{N})*/
|
|
constNullMap() => const {null: null};
|
|
|
|
/*member: stringIntMap:Dictionary([subclass=JsLinkedHashMap|powerset={N}{O}{N}], key: [exact=JSString|powerset={I}{O}{I}], value: [null|exact=JSUInt31|powerset={null}{I}{O}{N}], map: {a: [exact=JSUInt31|powerset={I}{O}{N}], b: [exact=JSUInt31|powerset={I}{O}{N}], c: [exact=JSUInt31|powerset={I}{O}{N}]}, powerset: {N}{O}{N})*/
|
|
stringIntMap() => {'a': 1, 'b': 2, 'c': 3};
|
|
|
|
/*member: intStringMap:Map([subclass=JsLinkedHashMap|powerset={N}{O}{N}], key: [exact=JSUInt31|powerset={I}{O}{N}], value: [null|exact=JSString|powerset={null}{I}{O}{I}], powerset: {N}{O}{N})*/
|
|
intStringMap() => {1: 'a', 2: 'b', 3: 'c'};
|
|
|
|
/*member: constStringIntMap:Dictionary([subclass=ConstantMap|powerset={N}{O}{N}], key: [exact=JSString|powerset={I}{O}{I}], value: [null|exact=JSUInt31|powerset={null}{I}{O}{N}], map: {a: [exact=JSUInt31|powerset={I}{O}{N}], b: [exact=JSUInt31|powerset={I}{O}{N}], c: [exact=JSUInt31|powerset={I}{O}{N}]}, powerset: {N}{O}{N})*/
|
|
constStringIntMap() => const {'a': 1, 'b': 2, 'c': 3};
|
|
|
|
/*member: constIntStringMap:Map([subclass=ConstantMap|powerset={N}{O}{N}], key: [exact=JSUInt31|powerset={I}{O}{N}], value: [null|exact=JSString|powerset={null}{I}{O}{I}], powerset: {N}{O}{N})*/
|
|
constIntStringMap() => const {1: 'a', 2: 'b', 3: 'c'};
|