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

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

Issue 165873005: Do not overwrite values on plurals/genders with the results of constant evaluation (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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/lib/generate_localized.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/lib/extract_messages.dart
diff --git a/pkg/intl/lib/extract_messages.dart b/pkg/intl/lib/extract_messages.dart
index aca18da7743a47983c310ab3225772d428dd495a..328b18de87e9ea4ea98d86b69d8fb11b6b3cdfa7 100644
--- a/pkg/intl/lib/extract_messages.dart
+++ b/pkg/intl/lib/extract_messages.dart
@@ -282,8 +282,6 @@ class MessageFindingVisitor extends GeneralizingASTVisitor {
void setAttribute(MainMessage msg, String fieldName, String fieldValue) {
if (["name", "desc", "examples", "args"].contains(fieldName)) {
msg[fieldName] = fieldValue;
- } else {
- pluralOrGender[fieldName] = fieldValue;
}
}
return _messageFromNode(node, extractFromPluralOrGender, setAttribute);
« no previous file with comments | « no previous file | pkg/intl/lib/generate_localized.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698