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

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

Issue 24114005: Allow getters to return Intl messages (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/sample_with_messages.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 0679ff873c6a9ec09b52a64c869dbfec7bd04319..2a34a4330c38c950fb0c5e527364d2bc5db04a4b 100644
--- a/pkg/intl/lib/extract_messages.dart
+++ b/pkg/intl/lib/extract_messages.dart
@@ -147,6 +147,7 @@ class MessageFindingVisitor extends GeneralizingASTVisitor {
*/
void visitMethodDeclaration(MethodDeclaration node) {
parameters = node.parameters;
+ if (parameters == null) parameters = new FormalParameterList();
name = node.name.name;
super.visitMethodDeclaration(node);
}
@@ -157,6 +158,7 @@ class MessageFindingVisitor extends GeneralizingASTVisitor {
*/
void visitFunctionDeclaration(FunctionDeclaration node) {
parameters = node.functionExpression.parameters;
+ if (parameters == null) parameters = new FormalParameterList();
name = node.name.name;
super.visitFunctionDeclaration(node);
}
« no previous file with comments | « no previous file | pkg/intl/test/message_extraction/sample_with_messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698