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

Side by Side Diff: pkg/analyzer/lib/src/generated/element_handle.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // This code was auto-generated, is not intended to be edited, and is subject to 5 // This code was auto-generated, is not intended to be edited, and is subject to
6 // significant change. Please see the README file for more information. 6 // significant change. Please see the README file for more information.
7 7
8 library engine.element_handle; 8 library engine.element_handle;
9 9
10 import 'package:analyzer/src/generated/utilities_collection.dart';
11
12 import 'ast.dart'; 10 import 'ast.dart';
13 import 'element.dart'; 11 import 'element.dart';
14 import 'engine.dart'; 12 import 'engine.dart';
15 import 'java_core.dart'; 13 import 'java_core.dart';
16 import 'java_engine.dart'; 14 import 'java_engine.dart';
17 import 'source.dart'; 15 import 'source.dart';
18 import 'utilities_dart.dart'; 16 import 'utilities_dart.dart';
19 17
20 /** 18 /**
21 * Instances of the class `ClassElementHandle` implement a handle to a `ClassEle ment`. 19 * Instances of the class `ClassElementHandle` implement a handle to a `ClassEle ment`.
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 365
368 @override 366 @override
369 AstNode get node => actualElement.node; 367 AstNode get node => actualElement.node;
370 368
371 @override 369 @override
372 Source get source => actualElement.source; 370 Source get source => actualElement.source;
373 371
374 @override 372 @override
375 CompilationUnit get unit => actualElement.unit; 373 CompilationUnit get unit => actualElement.unit;
376 374
377 /**
378 * Identifiers of the elements that use this elements.
379 */
380 @override
381 IntSet get users => new IntSet();
382
383 @override 375 @override
384 bool operator ==(Object object) => 376 bool operator ==(Object object) =>
385 object is Element && object.location == _location; 377 object is Element && object.location == _location;
386 378
387 @override 379 @override
388 accept(ElementVisitor visitor) => actualElement.accept(visitor); 380 accept(ElementVisitor visitor) => actualElement.accept(visitor);
389 381
390 /**
391 * Remember the given [element] as a user of this element.
392 */
393 @override
394 void addUser(Element element) {
395 }
396
397 @override 382 @override
398 String computeDocumentationComment() => 383 String computeDocumentationComment() =>
399 actualElement.computeDocumentationComment(); 384 actualElement.computeDocumentationComment();
400 385
401 @override 386 @override
402 Element getAncestor(Predicate<Element> predicate) => 387 Element getAncestor(Predicate<Element> predicate) =>
403 actualElement.getAncestor(predicate); 388 actualElement.getAncestor(predicate);
404 389
405 @override 390 @override
406 String getExtendedDisplayName(String shortName) => 391 String getExtendedDisplayName(String shortName) =>
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 DartType get type => actualElement.type; 1068 DartType get type => actualElement.type;
1084 } 1069 }
1085 /** 1070 /**
1086 * TODO(scheglov) invalid implementation 1071 * TODO(scheglov) invalid implementation
1087 */ 1072 */
1088 class WeakReference<T> { 1073 class WeakReference<T> {
1089 final T value; 1074 final T value;
1090 WeakReference(this.value); 1075 WeakReference(this.value);
1091 T get() => value; 1076 T get() => value;
1092 } 1077 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/element.dart ('k') | pkg/analyzer/lib/src/generated/element_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698