| Index: pkg/analyzer/lib/src/generated/element.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
|
| index 671547f22fb61773977b56297c3159e5a0d9ba80..740e560fd3ded23570da7c1331ccfe61dc2d5b9a 100644
|
| --- a/pkg/analyzer/lib/src/generated/element.dart
|
| +++ b/pkg/analyzer/lib/src/generated/element.dart
|
| @@ -3472,10 +3472,10 @@ abstract class ElementImpl implements Element {
|
| String _name;
|
|
|
| /**
|
| - * The offset of the name of this element in the file that contains the declaration of this
|
| - * element.
|
| + * The offset of the name of this element in the file that contains the
|
| + * declaration of this element.
|
| */
|
| - int nameOffset = 0;
|
| + int _nameOffset = 0;
|
|
|
| /**
|
| * A bit-encoded form of the modifiers associated with this element.
|
| @@ -3511,7 +3511,7 @@ abstract class ElementImpl implements Element {
|
| * @param nameOffset the offset of the name of this element in the file that contains the
|
| * declaration of this element
|
| */
|
| - ElementImpl(String name, this.nameOffset) {
|
| + ElementImpl(String name, this._nameOffset) {
|
| this._name = StringUtilities.intern(name);
|
| }
|
|
|
| @@ -3628,6 +3628,22 @@ abstract class ElementImpl implements Element {
|
| _cachedHashCode = null;
|
| }
|
|
|
| + /**
|
| + * The offset of the name of this element in the file that contains the
|
| + * declaration of this element.
|
| + */
|
| + int get nameOffset => _nameOffset;
|
| +
|
| + /**
|
| + * Sets the offset of the name of this element in the file that contains the
|
| + * declaration of this element.
|
| + */
|
| + void set nameOffset(int offset) {
|
| + _nameOffset = offset;
|
| + _cachedHashCode = null;
|
| + _cachedLocation = null;
|
| + }
|
| +
|
| @override
|
| AstNode get node => getNodeMatching((node) => node is AstNode);
|
|
|
| @@ -4904,6 +4920,10 @@ class FieldElementImpl extends PropertyInducingElementImpl implements
|
| ClassElement get enclosingElement => super.enclosingElement as ClassElement;
|
|
|
| @override
|
| + bool get isEnumConstant =>
|
| + enclosingElement != null ? enclosingElement.isEnum : false;
|
| +
|
| + @override
|
| bool get isStatic => hasModifier(Modifier.STATIC);
|
|
|
| @override
|
| @@ -4920,10 +4940,6 @@ class FieldElementImpl extends PropertyInducingElementImpl implements
|
|
|
| @override
|
| accept(ElementVisitor visitor) => visitor.visitFieldElement(this);
|
| -
|
| - @override
|
| - bool get isEnumConstant =>
|
| - enclosingElement != null ? enclosingElement.isEnum : false;
|
| }
|
|
|
| /**
|
| @@ -5025,6 +5041,9 @@ class FieldMember extends VariableMember implements FieldElement {
|
| PropertyAccessorMember.from(baseElement.getter, definingType);
|
|
|
| @override
|
| + bool get isEnumConstant => baseElement.isEnumConstant;
|
| +
|
| + @override
|
| bool get isStatic => baseElement.isStatic;
|
|
|
| @override
|
| @@ -5096,9 +5115,6 @@ class FieldMember extends VariableMember implements FieldElement {
|
| }
|
| return false;
|
| }
|
| -
|
| - @override
|
| - bool get isEnumConstant => baseElement.isEnumConstant;
|
| }
|
|
|
| /**
|
|
|