| OLD | NEW |
| 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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 756 * Return the most immediate ancestor of this element for which the | 756 * Return the most immediate ancestor of this element for which the |
| 757 * [predicate] returns `true`, or `null` if there is no such ancestor. Note | 757 * [predicate] returns `true`, or `null` if there is no such ancestor. Note |
| 758 * that this element will never be returned. | 758 * that this element will never be returned. |
| 759 */ | 759 */ |
| 760 Element/*=E*/ getAncestor/*<E extends Element >*/( | 760 Element/*=E*/ getAncestor/*<E extends Element >*/( |
| 761 Predicate<Element> predicate); | 761 Predicate<Element> predicate); |
| 762 | 762 |
| 763 /** | 763 /** |
| 764 * Return a display name for the given element that includes the path to the | 764 * Return a display name for the given element that includes the path to the |
| 765 * compilation unit in which the type is defined. If [shortName] is `null` | 765 * compilation unit in which the type is defined. If [shortName] is `null` |
| 766 * then [getDisplayName] will be used as the name of this element. Otherwise | 766 * then [displayName] will be used as the name of this element. Otherwise |
| 767 * the provided name will be used. | 767 * the provided name will be used. |
| 768 */ | 768 */ |
| 769 // TODO(brianwilkerson) Make the parameter optional. | 769 // TODO(brianwilkerson) Make the parameter optional. |
| 770 String getExtendedDisplayName(String shortName); | 770 String getExtendedDisplayName(String shortName); |
| 771 | 771 |
| 772 /** | 772 /** |
| 773 * Return `true` if this element, assuming that it is within scope, is | 773 * Return `true` if this element, assuming that it is within scope, is |
| 774 * accessible to code in the given [library]. This is defined by the Dart | 774 * accessible to code in the given [library]. This is defined by the Dart |
| 775 * Language Specification in section 3.2: | 775 * Language Specification in section 3.2: |
| 776 * <blockquote> | 776 * <blockquote> |
| (...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2011 DartType get type; | 2011 DartType get type; |
| 2012 | 2012 |
| 2013 /** | 2013 /** |
| 2014 * Return a representation of the value of this variable, forcing the value | 2014 * Return a representation of the value of this variable, forcing the value |
| 2015 * to be computed if it had not previously been computed, or `null` if either | 2015 * to be computed if it had not previously been computed, or `null` if either |
| 2016 * this variable was not declared with the 'const' modifier or if the value of | 2016 * this variable was not declared with the 'const' modifier or if the value of |
| 2017 * this variable could not be computed because of errors. | 2017 * this variable could not be computed because of errors. |
| 2018 */ | 2018 */ |
| 2019 DartObject computeConstantValue(); | 2019 DartObject computeConstantValue(); |
| 2020 } | 2020 } |
| OLD | NEW |