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

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

Issue 10990103: Remove dart2js specific core.dart/coreimpl.dart files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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 | « lib/compiler/implementation/lib/coreimpl.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) 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 #library('mock_compiler'); 5 #library('mock_compiler');
6 6
7 #import("dart:uri"); 7 #import("dart:uri");
8 8
9 #import("../../../lib/compiler/implementation/elements/elements.dart"); 9 #import("../../../lib/compiler/implementation/elements/elements.dart");
10 #import("../../../lib/compiler/implementation/leg.dart"); 10 #import("../../../lib/compiler/implementation/leg.dart");
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 add$1(receiver, value) {} 47 add$1(receiver, value) {}
48 get$length(receiver) {} 48 get$length(receiver) {}
49 filter(receiver, predicate) {} 49 filter(receiver, predicate) {}
50 removeLast(receiver) {} 50 removeLast(receiver) {}
51 iterator(receiver) {} 51 iterator(receiver) {}
52 next(receiver) {} 52 next(receiver) {}
53 hasNext(receiver) {}'''; 53 hasNext(receiver) {}''';
54 54
55 const String DEFAULT_CORELIB = r''' 55 const String DEFAULT_CORELIB = r'''
56 print(var obj) {} 56 print(var obj) {}
57 interface int extends num {} 57 abstract class int extends num {}
58 interface double extends num {} 58 abstract class double extends num {}
59 class bool {} 59 class bool {}
60 class String {} 60 class String {}
61 class Object {} 61 class Object {}
62 interface num {} 62 interface num {}
63 class Function {} 63 class Function {}
64 interface List default ListImplementation { List([length]);} 64 interface List default ListImplementation { List([length]);}
65 class ListImplementation { factory List([length]) => null; } 65 class ListImplementation { factory List([length]) => null; }
66 class Closure {} 66 class Closure {}
67 class Null {} 67 class Null {}
68 class Dynamic_ {} 68 class Dynamic_ {}
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 }); 215 });
216 } 216 }
217 } 217 }
218 218
219 LibraryElement mockLibrary(Compiler compiler, String source) { 219 LibraryElement mockLibrary(Compiler compiler, String source) {
220 Uri uri = new Uri.fromComponents(scheme: "source"); 220 Uri uri = new Uri.fromComponents(scheme: "source");
221 var library = new LibraryElement(new Script(uri, new MockFile(source))); 221 var library = new LibraryElement(new Script(uri, new MockFile(source)));
222 importLibrary(library, compiler.coreLibrary, compiler); 222 importLibrary(library, compiler.coreLibrary, compiler);
223 return library; 223 return library;
224 } 224 }
OLDNEW
« no previous file with comments | « lib/compiler/implementation/lib/coreimpl.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698