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

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

Issue 23484033: Avoid name collision with reserved word (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | « no previous file | pkg/intl/test/message_extraction/foo_messages_all.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/generate_localized.dart
diff --git a/pkg/intl/lib/generate_localized.dart b/pkg/intl/lib/generate_localized.dart
index 285e05e710db5ca5cb10193fd3437250b642471b..1cbaa7a3d9b0a637d17da24096732cbd9f1b3d63 100644
--- a/pkg/intl/lib/generate_localized.dart
+++ b/pkg/intl/lib/generate_localized.dart
@@ -85,7 +85,7 @@ abstract class TranslatedMessage {
* We can't use a hyphen in a Dart library name, so convert the locale
* separator to an underscore.
*/
-String _libraryName(String x) => x.replaceAll('-', '_');
+String _libraryName(String x) => 'lib_' + x.replaceAll('-', '_');
Emily Fortuna 2013/09/11 19:47:43 just as an alternative, consider prefixing it as "
/**
* Generate a file <[generated_file_prefix]>_messages_<[locale]>.dart
« no previous file with comments | « no previous file | pkg/intl/test/message_extraction/foo_messages_all.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698