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

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

Issue 121043003: Update intl pubspec for new analyzer version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Forgot to increase version number Created 6 years, 11 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/pubspec.yaml » ('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 b140dfb46218dd12edf930d3ee8474a2b2d415c2..8a6ad529ec09ffde15c899115227fef1abf949a7 100644
--- a/pkg/intl/lib/extract_messages.dart
+++ b/pkg/intl/lib/extract_messages.dart
@@ -147,7 +147,9 @@ class MessageFindingVisitor extends GeneralizingASTVisitor {
*/
void visitMethodDeclaration(MethodDeclaration node) {
parameters = node.parameters;
- if (parameters == null) parameters = new FormalParameterList(null, [], null, null, null);
+ if (parameters == null) {
+ parameters = new FormalParameterList(null, [], null, null, null);
+ }
name = node.name.name;
super.visitMethodDeclaration(node);
}
@@ -158,7 +160,9 @@ class MessageFindingVisitor extends GeneralizingASTVisitor {
*/
void visitFunctionDeclaration(FunctionDeclaration node) {
parameters = node.functionExpression.parameters;
- if (parameters == null) parameters = new FormalParameterList(null, [], null, null, null);
+ if (parameters == null) {
+ parameters = new FormalParameterList(null, [], null, null, null);
+ }
name = node.name.name;
super.visitFunctionDeclaration(node);
}
« no previous file with comments | « no previous file | pkg/intl/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698