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

Side by Side Diff: sdk/lib/io/platform_impl.dart

Issue 11784019: Fix type warning in platform_impl.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart.io; 5 part of dart.io;
6 6
7 class _Platform { 7 class _Platform {
8 external static int _numberOfProcessors(); 8 external static int _numberOfProcessors();
9 external static String _pathSeparator(); 9 external static String _pathSeparator();
10 external static String _operatingSystem(); 10 external static String _operatingSystem();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 V operator [](String key) => _map[key.toUpperCase()]; 76 V operator [](String key) => _map[key.toUpperCase()];
77 void operator []=(String key, V value) { 77 void operator []=(String key, V value) {
78 _map[key.toUpperCase()] = value; 78 _map[key.toUpperCase()] = value;
79 } 79 }
80 V putIfAbsent(String key, V ifAbsent()) { 80 V putIfAbsent(String key, V ifAbsent()) {
81 _map.putIfAbsent(key.toUpperCase(), ifAbsent); 81 _map.putIfAbsent(key.toUpperCase(), ifAbsent);
82 } 82 }
83 V remove(String key) => _map.remove(key.toUpperCase()); 83 V remove(String key) => _map.remove(key.toUpperCase());
84 void clear() => _map.clear(); 84 void clear() => _map.clear();
85 void forEach(void f(String key, V value)) => _map.forEach(f); 85 void forEach(void f(String key, V value)) => _map.forEach(f);
86 Collection<String> get keys => _map.keys; 86 Iterable<String> get keys => _map.keys;
87 Collection<V> get values => _map.values; 87 Iterable<V> get values => _map.values;
88 int get length => _map.length; 88 int get length => _map.length;
89 bool get isEmpty => _map.isEmpty; 89 bool get isEmpty => _map.isEmpty;
90 90
91 Map<String, V> _map; 91 Map<String, V> _map;
92 } 92 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698