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

Side by Side Diff: pkg/analyzer/lib/src/generated/element_handle.dart

Issue 770333003: First step to resolving simple API changes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 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
10 import 'ast.dart'; 12 import 'ast.dart';
11 import 'element.dart'; 13 import 'element.dart';
12 import 'engine.dart'; 14 import 'engine.dart';
13 import 'java_core.dart'; 15 import 'java_core.dart';
14 import 'java_engine.dart'; 16 import 'java_engine.dart';
15 import 'source.dart'; 17 import 'source.dart';
16 import 'utilities_dart.dart'; 18 import 'utilities_dart.dart';
17 19
18 /** 20 /**
19 * Instances of the class `ClassElementHandle` implement a handle to a `ClassEle ment`. 21 * Instances of the class `ClassElementHandle` implement a handle to a `ClassEle ment`.
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 ConstructorElement get redirectedConstructor => 274 ConstructorElement get redirectedConstructor =>
273 actualElement.redirectedConstructor; 275 actualElement.redirectedConstructor;
274 } 276 }
275 277
276 /** 278 /**
277 * The abstract class `ElementHandle` implements the behavior common to objects that implement 279 * The abstract class `ElementHandle` implements the behavior common to objects that implement
278 * a handle to an [Element]. 280 * a handle to an [Element].
279 */ 281 */
280 abstract class ElementHandle implements Element { 282 abstract class ElementHandle implements Element {
281 /** 283 /**
284 * The unique integer identifier of this element.
285 */
286 final int id = 0;
287
288 /**
282 * The context in which the element is defined. 289 * The context in which the element is defined.
283 */ 290 */
284 AnalysisContext _context; 291 AnalysisContext _context;
285 292
286 /** 293 /**
287 * The location of this element, used to reconstitute the element if it has be en garbage 294 * The location of this element, used to reconstitute the element if it has be en garbage
288 * collected. 295 * collected.
289 */ 296 */
290 ElementLocation _location; 297 ElementLocation _location;
291 298
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 @override 374 @override
368 AstNode get node => actualElement.node; 375 AstNode get node => actualElement.node;
369 376
370 @override 377 @override
371 Source get source => actualElement.source; 378 Source get source => actualElement.source;
372 379
373 @override 380 @override
374 CompilationUnit get unit => actualElement.unit; 381 CompilationUnit get unit => actualElement.unit;
375 382
376 @override 383 @override
384 IntSet get users => new IntSet();
385
386 @override
377 bool operator ==(Object object) => 387 bool operator ==(Object object) =>
378 object is Element && object.location == _location; 388 object is Element && object.location == _location;
379 389
380 @override 390 @override
381 accept(ElementVisitor visitor) => actualElement.accept(visitor); 391 accept(ElementVisitor visitor) => actualElement.accept(visitor);
382 392
383 @override 393 @override
394 void addUser(Element element) {
395 }
396
397 @override
384 String computeDocumentationComment() => 398 String computeDocumentationComment() =>
385 actualElement.computeDocumentationComment(); 399 actualElement.computeDocumentationComment();
386 400
387 @override 401 @override
388 Element getAncestor(Predicate<Element> predicate) => 402 Element getAncestor(Predicate<Element> predicate) =>
389 actualElement.getAncestor(predicate); 403 actualElement.getAncestor(predicate);
390 404
391 @override 405 @override
392 String getExtendedDisplayName(String shortName) => 406 String getExtendedDisplayName(String shortName) =>
393 actualElement.getExtendedDisplayName(shortName); 407 actualElement.getExtendedDisplayName(shortName);
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 DartType get type => actualElement.type; 1086 DartType get type => actualElement.type;
1073 } 1087 }
1074 /** 1088 /**
1075 * TODO(scheglov) invalid implementation 1089 * TODO(scheglov) invalid implementation
1076 */ 1090 */
1077 class WeakReference<T> { 1091 class WeakReference<T> {
1078 final T value; 1092 final T value;
1079 WeakReference(this.value); 1093 WeakReference(this.value);
1080 T get() => value; 1094 T get() => value;
1081 } 1095 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698