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

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

Issue 192303002: Support for @DartName and @DartOptional annotations. (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/processor/LocalVariablesSemanticProcessor.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/LocalVariablesSemanticProcessor.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/LocalVariablesSemanticProcessor.java
index 564179278b33a96d67b0bf1ff3258fb801e3dac4..7dd5effbcbf66d9c99bd39d7045ceca4d32de62a 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/LocalVariablesSemanticProcessor.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/processor/LocalVariablesSemanticProcessor.java
@@ -130,21 +130,6 @@ public class LocalVariablesSemanticProcessor extends SemanticProcessor {
}
}
- private static AstNode getExecutableNode(AstNode node) {
- // method
- MethodDeclaration method = node.getAncestor(MethodDeclaration.class);
- if (method != null) {
- return method;
- }
- // constructor
- ConstructorDeclaration constructor = node.getAncestor(ConstructorDeclaration.class);
- if (constructor != null) {
- return constructor;
- }
- // no
- return null;
- }
-
private static boolean isMethodInvocationName(AstNode node) {
AstNode parent = node.getParent();
return parent instanceof MethodInvocation

Powered by Google App Engine
This is Rietveld 408576698