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

Unified Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 107833002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index c024cc0d8b458be084baf6f48b9721d9c1f8f84c..a8954a9d74685b568c3fe2d6c9a8831c523d0c2d 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -3892,13 +3892,6 @@ class FunctionElementImpl extends ExecutableElementImpl implements FunctionEleme
static List<FunctionElement> EMPTY_ARRAY = new List<FunctionElement>(0);
/**
- * Initialize a newly created synthetic function element.
- */
- FunctionElementImpl() : super.con2("", -1) {
- synthetic = true;
- }
-
- /**
* Initialize a newly created function element to have the given name.
*
* @param name the name of this element
@@ -3916,45 +3909,6 @@ class FunctionElementImpl extends ExecutableElementImpl implements FunctionEleme
accept(ElementVisitor visitor) => visitor.visitFunctionElement(this);
- /**
- * Treating the set of arrays defined in [ExecutableElementImpl] as one long array, this
- * returns the index position of the passed child in this [FunctionElement]. This gives a
- * unique integer for each element, this is provided primarily for function elements that do not
- * have a name (closures), which cannot use [Element#getNameOffset]. If there is no such
- * element, `-1` is returned.
- *
- * @param element the element to find and return an integer for, if there is no such element,
- * `-1` is returned
- */
- int getIndexPosition(Element element) {
- List<FunctionElement> functions = this.functions;
- List<LabelElement> labels = this.labels;
- List<LocalVariableElement> localVariables = this.localVariables;
- List<ParameterElement> parameters = this.parameters;
- int count = 0;
- for (int i = 0; i < functions.length; i++, count++) {
- if (identical(element, functions[i])) {
- return count;
- }
- }
- for (int i = 0; i < labels.length; i++, count++) {
- if (identical(element, labels[i])) {
- return count;
- }
- }
- for (int i = 0; i < localVariables.length; i++, count++) {
- if (identical(element, localVariables[i])) {
- return count;
- }
- }
- for (int i = 0; i < parameters.length; i++, count++) {
- if (identical(element, parameters[i])) {
- return count;
- }
- }
- return -1;
- }
-
ElementKind get kind => ElementKind.FUNCTION;
SourceRange get visibleRange {
« no previous file with comments | « pkg/analyzer/lib/src/generated/ast.dart ('k') | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698