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

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

Issue 19754002: Rewrite how we handle synthesized constructors in the compiler. This was motivated by issue https:/… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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) 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 "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:collection'; 8 import 'dart:collection';
9 9
10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api; 10 import '../../../sdk/lib/_internal/compiler/compiler.dart' as api;
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 print(var obj) {} 170 print(var obj) {}
171 abstract class num {} 171 abstract class num {}
172 abstract class int extends num { } 172 abstract class int extends num { }
173 abstract class double extends num { 173 abstract class double extends num {
174 static var NAN = 0; 174 static var NAN = 0;
175 static parse(s) {} 175 static parse(s) {}
176 } 176 }
177 class bool {} 177 class bool {}
178 class String implements Pattern {} 178 class String implements Pattern {}
179 class Object { 179 class Object {
180 Object();
180 operator ==(other) { return true; } 181 operator ==(other) { return true; }
181 get hashCode => throw "Object.hashCode not implemented."; 182 get hashCode => throw "Object.hashCode not implemented.";
182 String toString() { return null; } 183 String toString() { return null; }
183 noSuchMethod(im) { throw im; } 184 noSuchMethod(im) { throw im; }
184 } 185 }
185 abstract class StackTrace {} 186 abstract class StackTrace {}
186 class Type {} 187 class Type {}
187 class Function {} 188 class Function {}
188 class List<E> { 189 class List<E> {
189 List([length]); 190 List([length]);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 } 452 }
452 } 453 }
453 454
454 class MockDeferredLoadTask extends DeferredLoadTask { 455 class MockDeferredLoadTask extends DeferredLoadTask {
455 MockDeferredLoadTask(Compiler compiler) : super(compiler); 456 MockDeferredLoadTask(Compiler compiler) : super(compiler);
456 457
457 void registerMainApp(LibraryElement mainApp) { 458 void registerMainApp(LibraryElement mainApp) {
458 // Do nothing. 459 // Do nothing.
459 } 460 }
460 } 461 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/universe/universe.dart ('k') | tests/language/const_constructor_mixin_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698