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

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

Issue 1712583003: Serialize and resynthesize labels. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 1bd59d13d5cb396cffff689a92bbcb01b6665268..24e43ce78d56c839daf54af27ca017195235a5d8 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -1127,6 +1127,12 @@ abstract class UnlinkedExecutable extends base.SummaryClass {
List<UnlinkedExecutable> get localFunctions;
/**
+ * The list of local labels.
+ */
+ @Id(22)
+ List<UnlinkedLabel> get localLabels;
+
+ /**
* The list of local variables.
*/
@Id(19)
@@ -1355,6 +1361,37 @@ abstract class UnlinkedImport extends base.SummaryClass {
}
/**
+ * Unlinked summary information about a label.
+ */
+abstract class UnlinkedLabel extends base.SummaryClass {
+ /**
+ * Return `true` if this label is associated with a `switch` member (`case` or
+ * `default`).
+ */
+ @Id(2)
+ bool get isOnSwitchMember;
+
+ /**
+ * Return `true` if this label is associated with a `switch` statement.
+ */
+ @Id(3)
+ bool get isOnSwitchStatement;
+
+ /**
+ * Name of the label.
+ */
+ @Id(0)
+ String get name;
+
+ /**
+ * Offset of the label relative to the beginning of the file.
+ */
+ @informative
+ @Id(1)
+ int get nameOffset;
+}
+
+/**
* Unlinked summary information about a function parameter.
*/
abstract class UnlinkedParam extends base.SummaryClass {
« 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