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

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

Issue 854363005: Remove Element.users support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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/analyzer/lib/src/generated/element_handle.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 9d4bf1699a80d971d6bdc16b3fd3036761a66294..49cc609920d1c09342843e71030ac04eaaa4b163 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -2393,11 +2393,6 @@ abstract class Element {
CompilationUnit get unit;
/**
- * Identifiers of the elements that use this elements.
- */
- IntSet get users;
-
- /**
* Use the given visitor to visit this element.
*
* @param visitor the visitor that will visit this element
@@ -2406,11 +2401,6 @@ abstract class Element {
accept(ElementVisitor visitor);
/**
- * Remember the given [element] as a user of this element.
- */
- void addUser(Element element);
-
- /**
* Return the documentation comment for this element as it appears in the original source
* (complete with the beginning and ending delimiters), or `null` if this element does not
* have a documentation comment associated with it. This can be a long-running operation if the
@@ -2650,13 +2640,6 @@ abstract class ElementImpl implements Element {
ElementLocation _cachedLocation;
/**
- * Identifiers of the elements that use this elements.
- *
- * TODO(scheglov) consider this field lazily
- */
- final IntSet users = new IntSet();
-
- /**
* Initialize a newly created element to have the given name.
*
* @param name the name of this element
@@ -2832,16 +2815,6 @@ abstract class ElementImpl implements Element {
}
/**
- * Remember the given [element] as a user of this element.
- */
- @override
- void addUser(Element element) {
- if (element != null) {
- users.add(element.id);
- }
- }
-
- /**
* Append a textual representation of this element to the given [buffer].
*/
void appendTo(StringBuffer buffer) {
@@ -7964,20 +7937,6 @@ abstract class Member implements Element {
@override
CompilationUnit get unit => _baseElement.unit;
- /**
- * Identifiers of the elements that use this elements.
- */
- @override
- IntSet get users => _baseElement.users;
-
- /**
- * Remember the given [element] as a user of this element.
- */
- @override
- void addUser(Element element) {
- _baseElement.addUser(element);
- }
-
@override
String computeDocumentationComment() =>
_baseElement.computeDocumentationComment();
@@ -8522,21 +8481,9 @@ class MultiplyDefinedElementImpl implements MultiplyDefinedElement {
@override
CompilationUnit get unit => null;
- /**
- * Identifiers of the elements that use this elements.
- */
- @override
- IntSet get users => new IntSet();
-
@override
accept(ElementVisitor visitor) => visitor.visitMultiplyDefinedElement(this);
- /**
- * Remember the given [element] as a user of this element.
- */
- void addUser(Element element) {
- }
-
@override
String computeDocumentationComment() => null;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/element_handle.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698