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

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

Issue 677663002: Support constructor invocation in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add comment. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_builder_visitor.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 10 matching lines...) Expand all
21 } 21 }
22 22
23 const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{ 23 const Map<String, String> DEFAULT_CORE_LIBRARY = const <String, String>{
24 'bool': 'class bool {}', 24 'bool': 'class bool {}',
25 'Comparator': 'abstract class Comparator<T> {}', 25 'Comparator': 'abstract class Comparator<T> {}',
26 'DateTime': r''' 26 'DateTime': r'''
27 class DateTime { 27 class DateTime {
28 DateTime(year); 28 DateTime(year);
29 DateTime.utc(year); 29 DateTime.utc(year);
30 }''', 30 }''',
31 'deprecated': 'const deprecated = 0;', 31 'Deprecated': r'''
32 class Deprecated extends Object {
33 final String expires;
34 const Deprecated(this.expires);
35 }''',
36 'deprecated': 'const Object deprecated = const Deprecated("next release");',
32 'double': r''' 37 'double': r'''
33 abstract class double extends num { 38 abstract class double extends num {
34 static var NAN = 0; 39 static var NAN = 0;
35 static parse(s) {} 40 static parse(s) {}
36 }''', 41 }''',
37 'Function': 'class Function {}', 42 'Function': 'class Function {}',
38 'identical': 'bool identical(Object a, Object b) { return true; }', 43 'identical': 'bool identical(Object a, Object b) { return true; }',
39 'int': 'abstract class int extends num { }', 44 'int': 'abstract class int extends num { }',
40 'LinkedHashMap': r''' 45 'LinkedHashMap': r'''
41 class LinkedHashMap { 46 class LinkedHashMap {
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 '_callInIsolate': 'var _callInIsolate;', 355 '_callInIsolate': 'var _callInIsolate;',
351 '_WorkerBase': 'class _WorkerBase {}', 356 '_WorkerBase': 'class _WorkerBase {}',
352 }; 357 };
353 358
354 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{ 359 const Map<String, String> DEFAULT_MIRRORS_LIBRARY = const <String, String>{
355 'Comment': 'class Comment {}', 360 'Comment': 'class Comment {}',
356 'MirrorSystem': 'class MirrorSystem {}', 361 'MirrorSystem': 'class MirrorSystem {}',
357 'MirrorsUsed': 'class MirrorsUsed {}', 362 'MirrorsUsed': 'class MirrorsUsed {}',
358 }; 363 };
359 364
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/cps_ir/cps_ir_builder_visitor.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698