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

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

Issue 2014713002: Create lazy (Const)FieldElementImpl. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index e0ff394da5e13346eae233032a05ee2cec5f91ed..78d0f5f496275bf18d56e98cef9fd068b33ae782 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -1534,6 +1534,13 @@ class ConstFieldElementImpl extends FieldElementImpl with ConstVariableElement {
* Initialize a newly created field element to have the given [name].
*/
ConstFieldElementImpl.forNode(Identifier name) : super.forNode(name);
+
+ /**
+ * Initialize using the given serialized information.
+ */
+ ConstFieldElementImpl.forSerialized(
+ UnlinkedVariable unlinkedVariable, ElementImpl enclosingElement)
+ : super.forSerialized(unlinkedVariable, enclosingElement);
}
/**
@@ -3285,6 +3292,13 @@ class FieldElementImpl extends PropertyInducingElementImpl
*/
FieldElementImpl.forNode(Identifier name) : super.forNode(name);
+ /**
+ * Initialize using the given serialized information.
+ */
+ FieldElementImpl.forSerialized(
+ UnlinkedVariable unlinkedVariable, ElementImpl enclosingElement)
+ : super.forSerialized(unlinkedVariable, enclosingElement);
+
@override
ClassElement get enclosingElement => super.enclosingElement as ClassElement;
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698