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

Unified Diff: pkg/intl/lib/intl_helpers.dart

Issue 10952004: Change intl to use new pub layout (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « pkg/intl/lib/intl_browser.dart ('k') | pkg/intl/lib/intl_standalone.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/intl_helpers.dart
===================================================================
--- pkg/intl/lib/intl_helpers.dart (revision 12515)
+++ pkg/intl/lib/intl_helpers.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.
-
-/**
- * A library for general helper code associated with the intl library
- * rather than confined to specific parts of it.
- */
-
-#library("intl_helpers");
-
-/**
- * This is used as a marker for a locale data map that hasn't been initialized,
- * and will throw an exception on any usage.
- */
-class UninitializedLocaleData {
- final String message;
- const UninitializedLocaleData(this.message);
-
- operator [](String key) {
- _throwException();
- }
- List getKeys() => _throwException();
- bool containsKey(String key) => _throwException();
-
- _throwException() {
- throw new LocaleDataException("Locale data has not been initialized"
- ", call $message.");
- }
-}
-
-class LocaleDataException implements Exception {
- final String message;
- LocaleDataException(this.message);
- toString() => "LocaleDataException: $message";
-}
-
-/**
- * An abstract superclass for data readers to keep the type system happy.
- */
-abstract class LocaleDataReader {
- abstract Future read(String locale);
-}
« no previous file with comments | « pkg/intl/lib/intl_browser.dart ('k') | pkg/intl/lib/intl_standalone.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698