Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(341)

Unified Diff: lib/compiler/implementation/types/concrete_types_inferrer.dart

Issue 11267018: Make getKeys, getValues getters (keys, values). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update status files with co19 issue number. Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/compiler/implementation/ssa/variable_allocator.dart ('k') | lib/core/expect.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/types/concrete_types_inferrer.dart
diff --git a/lib/compiler/implementation/types/concrete_types_inferrer.dart b/lib/compiler/implementation/types/concrete_types_inferrer.dart
index 2a3ad192b0468bfcd9027be8eac4349e57732963..e8dcf1726f8a8f9495b83b1e82bd8f4ee86d1e59 100644
--- a/lib/compiler/implementation/types/concrete_types_inferrer.dart
+++ b/lib/compiler/implementation/types/concrete_types_inferrer.dart
@@ -213,7 +213,7 @@ class ConcreteTypeCartesianProductIterator implements Iterator {
size = 0;
return;
}
- for (final e in concreteTypes.getKeys()) {
+ for (final e in concreteTypes.keys) {
final baseTypes = concreteTypes[e].baseTypes;
size *= baseTypes.length;
}
@@ -232,7 +232,7 @@ class ConcreteTypeCartesianProductIterator implements Iterator {
ConcreteTypesEnvironment next() {
if (!hasNext) throw new NoMoreElementsException();
Element keyToIncrement = null;
- for (final key in concreteTypes.getKeys()) {
+ for (final key in concreteTypes.keys) {
final iterator = state[key];
if (iterator != null && iterator.hasNext) {
nextValues[key] = state[key].next();
@@ -317,7 +317,7 @@ class ConcreteTypesEnvironment {
if (other is! ConcreteTypesEnvironment) return false;
if (typeOfThis != other.typeOfThis) return false;
if (environment.length != other.environment.length) return false;
- for (Element key in environment.getKeys()) {
+ for (Element key in environment.keys) {
if (!other.environment.containsKey(key)
|| (environment[key] != other.environment[key])) {
return false;
@@ -663,7 +663,7 @@ class ConcreteTypesInferrer {
}
// we attach the named arguments to their corresponding named paramaters
// (we don't use foreach because we want to be able to return early)
- for (Identifier identifier in argumentsTypes.named.getKeys()) {
+ for (Identifier identifier in argumentsTypes.named.keys) {
final ConcreteType concreteType = argumentsTypes.named[identifier];
SourceString source = identifier.source;
final Element namedParameter = leftOverNamedParameters[source];
« no previous file with comments | « lib/compiler/implementation/ssa/variable_allocator.dart ('k') | lib/core/expect.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698