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

Unified Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 839913002: Validate incremental resolutions results if requested. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
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;
}
/**
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | pkg/analyzer/lib/src/generated/engine.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698