@@ -531,8 +531,8 @@ abstract class Element implements AnalysisTarget {
531
531
/// element, e.g. a synthetic property accessor), return itself.
532
532
Element ? get declaration;
533
533
534
- /// Return the display name of this element, or `null` if this element does
535
- /// not have a name.
534
+ /// Return the display name of this element, possibly the empty string if
535
+ /// this element does not have a name.
536
536
///
537
537
/// In most cases the name and the display name are the same. Differences
538
538
/// though are cases such as setters where the name of some setter `set f(x)`
@@ -1041,9 +1041,7 @@ abstract class ExecutableElement implements FunctionTypedElement {
1041
1041
Element get enclosingElement;
1042
1042
1043
1043
/// Return `true` if this executable element did not have an explicit return
1044
- /// type specified for it in the original source. Note that if there was no
1045
- /// explicit return type, and if the element model is fully populated, then
1046
- /// the [returnType] will not be `null` .
1044
+ /// type specified for it in the original source.
1047
1045
bool get hasImplicitReturnType;
1048
1046
1049
1047
/// Return `true` if this executable element is abstract. Executable elements
@@ -1231,9 +1229,7 @@ abstract class FunctionTypedElement implements TypeParameterizedElement {
1231
1229
/// element.
1232
1230
List <ParameterElement > get parameters;
1233
1231
1234
- /// Return the return type defined by this element. If the element model is
1235
- /// fully populated, then the [returnType] will not be `null` , even if no
1236
- /// return type was explicitly specified.
1232
+ /// Return the return type defined by this element.
1237
1233
DartType get returnType;
1238
1234
1239
1235
/// Return the type defined by this element.
@@ -1874,9 +1870,7 @@ abstract class VariableElement implements Element, ConstantEvaluationTarget {
1874
1870
/// > implicitly static.
1875
1871
bool get isStatic;
1876
1872
1877
- /// Return the declared type of this variable, or `null` if the variable did
1878
- /// not have a declared type (such as if it was declared using the keyword
1879
- /// 'var').
1873
+ /// Return the declared type of this variable.
1880
1874
DartType get type;
1881
1875
1882
1876
/// Return a representation of the value of this variable, forcing the value
0 commit comments