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

Unified Diff: pkg/analysis_server/test/src/utilities/change_builder_dart_test.dart

Issue 1758913002: Add instantiate method on ParameterizedType and InterfaceType. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Address 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
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);
« no previous file with comments | « pkg/analysis_server/lib/src/services/refactoring/extract_method.dart ('k') | pkg/analyzer/lib/dart/element/type.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698