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

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

Issue 2270903002: Remove 'Element.docRange'. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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
« no previous file with comments | « pkg/analyzer/CHANGELOG.md ('k') | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * Defines the element model. The element model describes the semantic (as 6 * Defines the element model. The element model describes the semantic (as
7 * opposed to syntactic) structure of Dart code. The syntactic structure of the 7 * opposed to syntactic) structure of Dart code. The syntactic structure of the
8 * code is modeled by the [AST structure](../ast/ast.dart). 8 * code is modeled by the [AST structure](../ast/ast.dart).
9 * 9 *
10 * The element model consists of two closely related kinds of objects: elements 10 * The element model consists of two closely related kinds of objects: elements
(...skipping 572 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 * Return the display name of this element, or `null` if this element does not 583 * Return the display name of this element, or `null` if this element does not
584 * have a name. 584 * have a name.
585 * 585 *
586 * In most cases the name and the display name are the same. Differences 586 * In most cases the name and the display name are the same. Differences
587 * though are cases such as setters where the name of some setter `set f(x)` 587 * though are cases such as setters where the name of some setter `set f(x)`
588 * is `f=`, instead of `f`. 588 * is `f=`, instead of `f`.
589 */ 589 */
590 String get displayName; 590 String get displayName;
591 591
592 /** 592 /**
593 * Return the source range of the documentation comment for this element,
594 * or `null` if this element does not or cannot have a documentation.
595 *
596 * Deprecated. Use [documentationComment] instead.
597 */
598 @deprecated
599 SourceRange get docRange;
600
601 /**
602 * Return the content of the documentation comment (including delimiters) for 593 * Return the content of the documentation comment (including delimiters) for
603 * this element, or `null` if this element does not or cannot have 594 * this element, or `null` if this element does not or cannot have
604 * documentation. 595 * documentation.
605 */ 596 */
606 String get documentationComment; 597 String get documentationComment;
607 598
608 /** 599 /**
609 * Return the element that either physically or logically encloses this 600 * Return the element that either physically or logically encloses this
610 * element. This will be `null` if this element is a library because libraries 601 * element. This will be `null` if this element is a library because libraries
611 * are the top-level elements in the model. 602 * are the top-level elements in the model.
(...skipping 1409 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 DartType get type; 2012 DartType get type;
2022 2013
2023 /** 2014 /**
2024 * Return a representation of the value of this variable, forcing the value 2015 * Return a representation of the value of this variable, forcing the value
2025 * to be computed if it had not previously been computed, or `null` if either 2016 * to be computed if it had not previously been computed, or `null` if either
2026 * this variable was not declared with the 'const' modifier or if the value of 2017 * this variable was not declared with the 'const' modifier or if the value of
2027 * this variable could not be computed because of errors. 2018 * this variable could not be computed because of errors.
2028 */ 2019 */
2029 DartObject computeConstantValue(); 2020 DartObject computeConstantValue();
2030 } 2021 }
OLDNEW
« no previous file with comments | « pkg/analyzer/CHANGELOG.md ('k') | pkg/analyzer/lib/src/dart/element/element.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698