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

Unified Diff: frog/leg/lib/mock.dart

Issue 9873021: Move frog/leg to lib/compiler/implementation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « frog/leg/lib/js_helper.dart ('k') | frog/leg/lib/mockimpl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/lib/mock.dart
===================================================================
--- frog/leg/lib/mock.dart (revision 5925)
+++ frog/leg/lib/mock.dart (working copy)
@@ -1,43 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Mocks of things that Leg cannot read directly.
-
-// TODO(ahe): Remove this file.
-
-class AssertionError {}
-class TypeError extends AssertionError {}
-
-class FallThroughError {
- const FallThroughError();
- String toString() => "Switch case fall-through.";
-}
-
-// TODO(ahe): VM specfic exception?
-class InternalError {
- const InternalError(this._msg);
- String toString() => "InternalError: '${_msg}'";
- final String _msg;
-}
-
-// TODO(ahe): VM specfic exception?
-class StaticResolutionException implements Exception {}
-
-void assert(condition) {}
-
-// TODO(ahe): Not sure ByteArray belongs in the core library.
-interface ByteArray extends List default _InternalByteArray {
- ByteArray(int length);
-}
-
-class _InternalByteArray {
- factory _InternalByteArray(int length) {
- throw new UnsupportedOperationException("new ByteArray($length)");
- }
-}
-
-// TODO(ahe): This definitely does not belong in the core library.
-void exit(int exitCode) {
- throw new UnsupportedOperationException("exit($exitCode)");
-}
« no previous file with comments | « frog/leg/lib/js_helper.dart ('k') | frog/leg/lib/mockimpl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698