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

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

Issue 1413613010: Normalize type masks to use the least upper instantiated subclass/type. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix try/poi Created 5 years, 1 month 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
« no previous file with comments | « tests/compiler/dart2js/members_test.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | 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) 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 const DEFAULT_PLATFORM_CONFIG = """ 9 const DEFAULT_PLATFORM_CONFIG = """
10 [libraries] 10 [libraries]
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 'int': 'abstract class int extends num { }', 56 'int': 'abstract class int extends num { }',
57 'Iterable': ''' 57 'Iterable': '''
58 abstract class Iterable<E> { 58 abstract class Iterable<E> {
59 Iterator<E> get iterator => null; 59 Iterator<E> get iterator => null;
60 }''', 60 }''',
61 'Iterator': ''' 61 'Iterator': '''
62 abstract class Iterator<E> { 62 abstract class Iterator<E> {
63 E get current => null; 63 E get current => null;
64 }''', 64 }''',
65 'LinkedHashMap': r''' 65 'LinkedHashMap': r'''
66 class LinkedHashMap { 66 class LinkedHashMap<K, V> implements Map<K, V> {
67 factory LinkedHashMap._empty() => null; 67 factory LinkedHashMap._empty() => null;
68 factory LinkedHashMap._literal(elements) => null; 68 factory LinkedHashMap._literal(elements) => null;
69 static _makeEmpty() => null; 69 static _makeEmpty() => null;
70 static _makeLiteral(elements) => null; 70 static _makeLiteral(elements) => null;
71 }''', 71 }''',
72 'List': r''' 72 'List': r'''
73 class List<E> extends Iterable<E> { 73 class List<E> extends Iterable<E> {
74 var length; 74 var length;
75 List([length]); 75 List([length]);
76 List.filled(length, element); 76 List.filled(length, element);
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 const LookupMap(this._entries, [this._nestedMaps = const []]) 457 const LookupMap(this._entries, [this._nestedMaps = const []])
458 : _key = null, _value = null; 458 : _key = null, _value = null;
459 459
460 const LookupMap.pair(this._key, this._value) 460 const LookupMap.pair(this._key, this._value)
461 : _entries = const [], _nestedMaps = const []; 461 : _entries = const [], _nestedMaps = const [];
462 V operator[](K k) => null; 462 V operator[](K k) => null;
463 }''', 463 }''',
464 '_version': 'const _version = "0.0.1+1";', 464 '_version': 'const _version = "0.0.1+1";',
465 }; 465 };
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/members_test.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698