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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java

Issue 192363003: Translate Java's @Override into Dart's @override. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java
index 49da7f622f452c812356b8e5ede5bc9b5094ff7d..28a2aa7910405d2fb4e13fd3d44405eddcae2ca5 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java
@@ -693,6 +693,13 @@ public class ToFormattedSourceVisitor implements AstVisitor<Void> {
@Override
public Void visitMethodDeclaration(MethodDeclaration node) {
visitNode(node.getDocumentationComment());
+ {
+ NodeList<Annotation> annotations = node.getMetadata();
+ if (!annotations.isEmpty()) {
+ visitNodeListWithSeparator(annotations, "\n");
+ nl2();
+ }
+ }
visitTokenWithSuffix(node.getExternalKeyword(), " ");
visitTokenWithSuffix(node.getModifierKeyword(), " ");
visitNodeWithSuffix(node.getReturnType(), " ");

Powered by Google App Engine
This is Rietveld 408576698