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

Side by Side Diff: pkg/analyzer/lib/src/dart/element/member.dart

Issue 2293143003: Revert "Remove 'Element.docRange'." (Closed)
Patch Set: Created 4 years, 3 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
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 library analyzer.src.dart.element.member; 5 library analyzer.src.dart.element.member;
6 6
7 import 'package:analyzer/dart/ast/ast.dart'; 7 import 'package:analyzer/dart/ast/ast.dart';
8 import 'package:analyzer/dart/constant/value.dart'; 8 import 'package:analyzer/dart/constant/value.dart';
9 import 'package:analyzer/dart/element/element.dart'; 9 import 'package:analyzer/dart/element/element.dart';
10 import 'package:analyzer/dart/element/type.dart'; 10 import 'package:analyzer/dart/element/type.dart';
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 AnalysisContext get context => _baseElement.context; 440 AnalysisContext get context => _baseElement.context;
441 441
442 /** 442 /**
443 * Return the type in which the element is defined. 443 * Return the type in which the element is defined.
444 */ 444 */
445 ParameterizedType get definingType => _definingType; 445 ParameterizedType get definingType => _definingType;
446 446
447 @override 447 @override
448 String get displayName => _baseElement.displayName; 448 String get displayName => _baseElement.displayName;
449 449
450 @deprecated
451 @override
452 SourceRange get docRange => _baseElement.docRange;
453
450 @override 454 @override
451 String get documentationComment => _baseElement.documentationComment; 455 String get documentationComment => _baseElement.documentationComment;
452 456
453 @override 457 @override
454 int get id => _baseElement.id; 458 int get id => _baseElement.id;
455 459
456 @override 460 @override
457 bool get isDeprecated => _baseElement.isDeprecated; 461 bool get isDeprecated => _baseElement.isDeprecated;
458 462
459 @override 463 @override
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 DartObject computeConstantValue() => baseElement.computeConstantValue(); 1047 DartObject computeConstantValue() => baseElement.computeConstantValue();
1044 1048
1045 @override 1049 @override
1046 void visitChildren(ElementVisitor visitor) { 1050 void visitChildren(ElementVisitor visitor) {
1047 // TODO(brianwilkerson) We need to finish implementing the accessors used 1051 // TODO(brianwilkerson) We need to finish implementing the accessors used
1048 // below so that we can safely invoke them. 1052 // below so that we can safely invoke them.
1049 super.visitChildren(visitor); 1053 super.visitChildren(visitor);
1050 baseElement.initializer?.accept(visitor); 1054 baseElement.initializer?.accept(visitor);
1051 } 1055 }
1052 } 1056 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/handle.dart ('k') | pkg/analyzer/lib/src/generated/utilities_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698