Index: pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart |
diff --git a/pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart b/pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart |
index 5db934d2841cac8c5818635073b81f399597d37c..3d4f6ae0270e9c053069a0c83b8074d3bc18f7db 100644 |
--- a/pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart |
+++ b/pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart |
@@ -60,8 +60,8 @@ class DartEditBuilderImplTest extends AbstractContextTest { |
DartChangeBuilderImpl builder = new DartChangeBuilderImpl(context); |
builder.addFileEdit(source, 1, (DartFileEditBuilderImpl builder) { |
builder.addInsertion(0, (DartEditBuilder builder) { |
- builder.writeClassDeclaration('C', |
- interfaces: [declaration.element.type]); |
+ builder |
+ .writeClassDeclaration('C', interfaces: [declaration.element.type]); |
}); |
}); |
SourceEdit edit = getEdit(builder); |
@@ -549,7 +549,7 @@ f(int i, String s) { |
builder.addFileEdit(source, 1, (DartFileEditBuilderImpl builder) { |
builder.addInsertion(content.length - 1, (DartEditBuilder builder) { |
builder |
- .writeType(classB.element.type.substitute4([classA.element.type])); |
+ .writeType(classB.element.type.instantiate([classA.element.type])); |
}); |
}); |
SourceEdit edit = getEdit(builder); |