Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
index 75cdc00797bf4f780592f921bd49488e231bb4d9..f66e35f78b382af9c1a5a07673ccb5485d57f4d2 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart |
@@ -444,14 +444,14 @@ class KernelJumpTarget extends JumpTarget<ast.Node> { |
KernelJumpTarget(this.targetStatement, KernelAstAdapter adapter, |
{bool makeContinueLabel = false}) { |
originalStatement = targetStatement; |
- this.labels = <LabelDefinition>[]; |
+ this.labels = <LabelDefinition<ast.Node>>[]; |
if (targetStatement is ir.WhileStatement || |
targetStatement is ir.DoStatement || |
targetStatement is ir.ForStatement || |
targetStatement is ir.ForInStatement) { |
// Currently these labels are set at resolution on the element itself. |
// Once that gets updated, this logic can change downstream. |
- JumpTarget target = adapter.elements |
+ JumpTarget<ast.Node> target = adapter.elements |
.getTargetDefinition(adapter.getNode(targetStatement)); |
if (target != null) { |
labels.addAll(target.labels); |
@@ -480,7 +480,7 @@ class KernelJumpTarget extends JumpTarget<ast.Node> { |
} |
@override |
- LabelDefinition addLabel(ast.Label label, String labelName) { |
+ LabelDefinition<ast.Node> addLabel(ast.Label label, String labelName) { |
LabelDefinition result = new LabelDefinitionX(label, labelName, this); |
labels.add(result); |
return result; |
@@ -499,13 +499,13 @@ class KernelJumpTarget extends JumpTarget<ast.Node> { |
bool get isTarget => isBreakTarget || isContinueTarget; |
@override |
- List<LabelDefinition> labels; |
+ List<LabelDefinition<ast.Node>> labels; |
@override |
String get name => 'target'; |
@override |
- ast.Node get statement => null; |
+ ast.Label get statement => null; |
String toString() => 'Target:$targetStatement'; |
} |