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

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 1707073002: Serialize and resynthesize variable initializers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fixes for review comments. Created 4 years, 10 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 | « pkg/analyzer/lib/src/summary/format.dart ('k') | 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/summary/idl.dart
diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart
index fca673cf41844f14a08ce41227d1d369aba711fb..1bd59d13d5cb396cffff689a92bbcb01b6665268 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -380,6 +380,11 @@ enum ReferenceKind {
typedef,
/**
+ * The entity is a local function.
+ */
+ function,
+
+ /**
* The entity is a top level function.
*/
topLevelFunction,
@@ -1382,6 +1387,13 @@ abstract class UnlinkedParam extends base.SummaryClass {
int get inferredTypeSlot;
/**
+ * The synthetic initializer function of the parameter. Absent if the variable
+ * does not have an initializer.
+ */
+ @Id(12)
+ UnlinkedExecutable get initializer;
+
+ /**
* Indicates whether this is a function-typed parameter.
*/
@Id(5)
@@ -1812,6 +1824,13 @@ abstract class UnlinkedVariable extends base.SummaryClass {
int get inferredTypeSlot;
/**
+ * The synthetic initializer function of the variable. Absent if the variable
+ * does not have an initializer.
+ */
+ @Id(13)
+ UnlinkedExecutable get initializer;
+
+ /**
* Indicates whether the variable is declared using the `const` keyword.
*/
@Id(6)
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698