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

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

Issue 17113002: Allow translated messages that have no matching original message (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix a typo in help text 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 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 fc8bd0999cec31534aef745d135ef360a0ef7c07..1ca9e13d02ba72a04d1d99eec5623d3f5d28bb28 100755
--- a/pkg/intl/lib/extract_messages.dart
+++ b/pkg/intl/lib/extract_messages.dart
@@ -201,9 +201,9 @@ class MessageFindingVisitor extends GeneralizingASTVisitor {
void reportErrorLocation(ASTNode node) {
if (origin != null) print(" from $origin");
- LineInfo info = root.lineInfo;
+ var info = root.lineInfo;
if (info != null) {
- LineInfo_Location line = info.getLocation(node.offset);
+ var line = info.getLocation(node.offset);
print(" line: ${line.lineNumber}, column: ${line.columnNumber}");
}
}
« 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