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

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: Handle invalid type count. Created 7 years, 6 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 static var NAN = 0; 151 static var NAN = 0;
152 static parse(s) {} 152 static parse(s) {}
153 } 153 }
154 class bool {} 154 class bool {}
155 class String implements Pattern {} 155 class String implements Pattern {}
156 class Object { 156 class Object {
157 operator ==(other) { return true; } 157 operator ==(other) { return true; }
158 String toString() { return null; } 158 String toString() { return null; }
159 noSuchMethod(im) { throw im; } 159 noSuchMethod(im) { throw im; }
160 } 160 }
161 abstract class StackTrace {}
161 class Type {} 162 class Type {}
162 class Function {} 163 class Function {}
163 class List<E> {} 164 class List<E> {}
164 abstract class Map<K,V> {} 165 abstract class Map<K,V> {}
165 class DateTime { 166 class DateTime {
166 DateTime(year); 167 DateTime(year);
167 DateTime.utc(year); 168 DateTime.utc(year);
168 } 169 }
169 abstract class Pattern {} 170 abstract class Pattern {}
170 bool identical(Object a, Object b) { return true; }'''; 171 bool identical(Object a, Object b) { return true; }''';
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 } 422 }
422 } 423 }
423 424
424 class MockDeferredLoadTask extends DeferredLoadTask { 425 class MockDeferredLoadTask extends DeferredLoadTask {
425 MockDeferredLoadTask(Compiler compiler) : super(compiler); 426 MockDeferredLoadTask(Compiler compiler) : super(compiler);
426 427
427 void registerMainApp(LibraryElement mainApp) { 428 void registerMainApp(LibraryElement mainApp) {
428 // Do nothing. 429 // Do nothing.
429 } 430 }
430 } 431 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698