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

Side by Side Diff: tests/compiler/dart2js/mock_libraries.dart

Issue 1126063002: Recognize unmodifiable lists (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 // Library for creating mock versions of platform and internal libraries. 5 // Library for creating mock versions of platform and internal libraries.
6 6
7 library mock_libraries; 7 library mock_libraries;
8 8
9 String buildLibrarySource( 9 String buildLibrarySource(
10 Map<String, String> elementMap, 10 Map<String, String> elementMap,
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 abstract class JSIndexable { 287 abstract class JSIndexable {
288 get length; 288 get length;
289 operator[](index); 289 operator[](index);
290 }''', 290 }''',
291 'JSInt': r''' 291 'JSInt': r'''
292 class JSInt extends JSNumber implements int { 292 class JSInt extends JSNumber implements int {
293 operator~() => this; 293 operator~() => this;
294 }''', 294 }''',
295 'JSMutableArray': 295 'JSMutableArray':
296 'class JSMutableArray extends JSArray implements JSMutableIndexable {}', 296 'class JSMutableArray extends JSArray implements JSMutableIndexable {}',
297 'JSUnmodifiableArray':
298 'class JSUnmodifiableArray extends JSArray {}',
297 'JSMutableIndexable': 299 'JSMutableIndexable':
298 'abstract class JSMutableIndexable extends JSIndexable {}', 300 'abstract class JSMutableIndexable extends JSIndexable {}',
299 'JSPositiveInt': 'class JSPositiveInt extends JSInt {}', 301 'JSPositiveInt': 'class JSPositiveInt extends JSInt {}',
300 'JSNull': r''' 302 'JSNull': r'''
301 class JSNull extends Interceptor { 303 class JSNull extends Interceptor {
302 bool operator==(other) => identical(null, other); 304 bool operator==(other) => identical(null, other);
303 get hashCode => throw "JSNull.hashCode not implemented."; 305 get hashCode => throw "JSNull.hashCode not implemented.";
304 String toString() => 'Null'; 306 String toString() => 'Null';
305 Type get runtimeType => null; 307 Type get runtimeType => null;
306 noSuchMethod(x) => super.noSuchMethod(x); 308 noSuchMethod(x) => super.noSuchMethod(x);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 'Stream': 'class Stream<T> {}', 383 'Stream': 'class Stream<T> {}',
382 'Completer': 'class Completer<T> {}', 384 'Completer': 'class Completer<T> {}',
383 'StreamIterator': 'class StreamIterator<T> {}', 385 'StreamIterator': 'class StreamIterator<T> {}',
384 }; 386 };
385 387
386 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 388 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
387 'Comment': 'class Comment {}', 389 'Comment': 'class Comment {}',
388 'MirrorSystem': 'class MirrorSystem {}', 390 'MirrorSystem': 'class MirrorSystem {}',
389 'MirrorsUsed': 'class MirrorsUsed {}', 391 'MirrorsUsed': 'class MirrorsUsed {}',
390 }; 392 };
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/js_lib/js_array.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698