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

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

Issue 930143002: Remove implicit dependencies. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Changes committed as r43874. Created 5 years, 10 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 | « dart/pkg/compiler/lib/src/resolution/members.dart ('k') | 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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 }''', 63 }''',
64 'Map': 'abstract class Map<K,V> {}', 64 'Map': 'abstract class Map<K,V> {}',
65 'Null': 'class Null {}', 65 'Null': 'class Null {}',
66 'num': r''' 66 'num': r'''
67 abstract class num { 67 abstract class num {
68 operator +(_); 68 operator +(_);
69 operator *(_); 69 operator *(_);
70 operator -(); 70 operator -();
71 }''', 71 }''',
72 'print': 'print(var obj) {}', 72 'print': 'print(var obj) {}',
73 'proxy': 'const proxy = 0;', 73 'proxy': 'const proxy = const _Proxy();',
74 '_Proxy': '''
75 class _Proxy {
76 const _Proxy();
77 }''',
74 'Object': r''' 78 'Object': r'''
75 class Object { 79 class Object {
76 const Object(); 80 const Object();
77 operator ==(other) { return true; } 81 operator ==(other) { return true; }
78 get hashCode => throw "Object.hashCode not implemented."; 82 get hashCode => throw "Object.hashCode not implemented.";
79 String toString() { return null; } 83 String toString() { return null; }
80 noSuchMethod(im) { throw im; } 84 noSuchMethod(im) { throw im; }
81 }''', 85 }''',
82 'StackTrace': 'abstract class StackTrace {}', 86 'StackTrace': 'abstract class StackTrace {}',
83 'String': 'class String implements Pattern {}', 87 'String': 'class String implements Pattern {}',
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 'Stream': 'class Stream<T> {}', 373 'Stream': 'class Stream<T> {}',
370 'Completer': 'class Completer<T> {}', 374 'Completer': 'class Completer<T> {}',
371 'StreamIterator': 'class StreamIterator<T> {}', 375 'StreamIterator': 'class StreamIterator<T> {}',
372 }; 376 };
373 377
374 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 378 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
375 'Comment': 'class Comment {}', 379 'Comment': 'class Comment {}',
376 'MirrorSystem': 'class MirrorSystem {}', 380 'MirrorSystem': 'class MirrorSystem {}',
377 'MirrorsUsed': 'class MirrorsUsed {}', 381 'MirrorsUsed': 'class MirrorsUsed {}',
378 }; 382 };
OLDNEW
« no previous file with comments | « dart/pkg/compiler/lib/src/resolution/members.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698