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

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

Issue 15689009: Type check try statements (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename variable. Created 7 years, 7 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 import 'dart:uri'; 9 import 'dart:uri';
10 10
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 static var NAN = 0; 153 static var NAN = 0;
154 static parse(s) {} 154 static parse(s) {}
155 } 155 }
156 class bool {} 156 class bool {}
157 class String implements Pattern {} 157 class String implements Pattern {}
158 class Object { 158 class Object {
159 operator ==(other) { return true; } 159 operator ==(other) { return true; }
160 String toString() { return null; } 160 String toString() { return null; }
161 noSuchMethod(im) { throw im; } 161 noSuchMethod(im) { throw im; }
162 } 162 }
163 abstract class StackTrace {}
163 class Type {} 164 class Type {}
164 class Function {} 165 class Function {}
165 class List<E> {} 166 class List<E> {}
166 abstract class Map<K,V> {} 167 abstract class Map<K,V> {}
167 class DateTime { 168 class DateTime {
168 DateTime(year); 169 DateTime(year);
169 DateTime.utc(year); 170 DateTime.utc(year);
170 } 171 }
171 abstract class Pattern {} 172 abstract class Pattern {}
172 bool identical(Object a, Object b) { return true; }'''; 173 bool identical(Object a, Object b) { return true; }''';
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 } 424 }
424 } 425 }
425 426
426 class MockDeferredLoadTask extends DeferredLoadTask { 427 class MockDeferredLoadTask extends DeferredLoadTask {
427 MockDeferredLoadTask(Compiler compiler) : super(compiler); 428 MockDeferredLoadTask(Compiler compiler) : super(compiler);
428 429
429 void registerMainApp(LibraryElement mainApp) { 430 void registerMainApp(LibraryElement mainApp) {
430 // Do nothing. 431 // Do nothing.
431 } 432 }
432 } 433 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/dart_backend_test.dart ('k') | tests/compiler/dart2js/resolver_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698