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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexContributor.java

Issue 135803003: Translate index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexContributor.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexContributor.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexContributor.java
index 5c23335452bebca0dda117317be7a3d9099d543d..7b7b808916b88e68920c6af6ac5e99e80ce275ea 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexContributor.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/IndexContributor.java
@@ -87,7 +87,6 @@ import com.google.dart.engine.scanner.Token;
import com.google.dart.engine.source.Source;
import com.google.dart.engine.type.InterfaceType;
import com.google.dart.engine.type.Type;
-import com.google.dart.engine.utilities.collection.IntStack;
import java.util.LinkedList;
import java.util.List;
@@ -364,14 +363,6 @@ public class IndexContributor extends GeneralizingASTVisitor<Void> {
*/
private LinkedList<Element> elementStack = Lists.newLinkedList();
- /**
- * A stack containing one value for each name scope that has been entered, where the values are a
- * count of the number of unnamed functions that have been found within that scope. These counts
- * are used to synthesize a name for those functions. The innermost scope is at the top of the
- * stack.
- */
- private IntStack unnamedFunctionCount = new IntStack();
-
public IndexContributor(IndexStore store) {
this.store = store;
}
@@ -381,7 +372,6 @@ public class IndexContributor extends GeneralizingASTVisitor<Void> {
*/
public void enterScope(Element element) {
elementStack.addFirst(element);
- unnamedFunctionCount.push(0);
}
/**
@@ -829,7 +819,6 @@ public class IndexContributor extends GeneralizingASTVisitor<Void> {
*/
private void exitScope() {
elementStack.removeFirst();
- unnamedFunctionCount.pop();
}
/**

Powered by Google App Engine
This is Rietveld 408576698