Index: pkg/analyzer/lib/src/summary/summarize_ast.dart |
diff --git a/pkg/analyzer/lib/src/summary/summarize_ast.dart b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
index ec83c64d3f1375eb4a9f43d7acf8684df7272980..874fa4e50dffcb05e40250a363e2d6f46c8a34f0 100644 |
--- a/pkg/analyzer/lib/src/summary/summarize_ast.dart |
+++ b/pkg/analyzer/lib/src/summary/summarize_ast.dart |
@@ -235,12 +235,6 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor { |
<UnlinkedExportNonPublicBuilder>[]; |
/** |
- * List of objects which should be written to |
- * [UnlinkedExecutable.localLabels]. |
- */ |
- List<UnlinkedLabelBuilder> labels = <UnlinkedLabelBuilder>[]; |
- |
- /** |
* List of objects which should be written to [UnlinkedUnit.parts]. |
*/ |
final List<UnlinkedPartBuilder> parts = <UnlinkedPartBuilder>[]; |
@@ -703,11 +697,9 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor { |
} |
} |
List<UnlinkedExecutableBuilder> oldExecutables = executables; |
- List<UnlinkedLabelBuilder> oldLabels = labels; |
Map<int, int> oldLocalClosureIndexMap = _localClosureIndexMap; |
bool oldSerializeClosureBodyExprs = _serializeClosureBodyExprs; |
executables = <UnlinkedExecutableBuilder>[]; |
- labels = <UnlinkedLabelBuilder>[]; |
_localClosureIndexMap = <int, int>{}; |
_serializeClosureBodyExprs = serializeBodyExpr; |
if (initializers != null) { |
@@ -730,10 +722,8 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor { |
} |
} |
b.localFunctions = executables; |
- b.localLabels = labels; |
Map<int, int> localClosureIndexMap = _localClosureIndexMap; |
executables = oldExecutables; |
- labels = oldLabels; |
_localClosureIndexMap = oldLocalClosureIndexMap; |
_serializeClosureBodyExprs = oldSerializeClosureBodyExprs; |
return localClosureIndexMap; |
@@ -1304,19 +1294,6 @@ class _SummarizeAstVisitor extends RecursiveAstVisitor { |
} |
@override |
- void visitLabel(Label node) { |
- AstNode parent = node.parent; |
- if (parent is! NamedExpression) { |
- labels.add(new UnlinkedLabelBuilder( |
- name: node.label.name, |
- nameOffset: node.offset, |
- isOnSwitchMember: parent is SwitchMember, |
- isOnSwitchStatement: parent is LabeledStatement && |
- parent.statement is SwitchStatement)); |
- } |
- } |
- |
- @override |
void visitLibraryDirective(LibraryDirective node) { |
libraryName = |
node.name.components.map((SimpleIdentifier id) => id.name).join('.'); |