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

Unified Diff: pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_dart.dart

Issue 2972463003: Use DartEditBuilder to write types and remove dead code (Closed)
Patch Set: Created 3 years, 6 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/analyzer_plugin/lib/utilities/change_builder/change_builder_dart.dart
diff --git a/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_dart.dart b/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_dart.dart
index 283a27136a3d20f35a4d5e0a625271bbe5066a39..755e0efdf344042fac5592e4f04276ad95859f72 100644
--- a/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_dart.dart
+++ b/pkg/analyzer_plugin/lib/utilities/change_builder/change_builder_dart.dart
@@ -226,6 +226,8 @@ abstract class DartEditBuilder implements EditBuilder {
* If a [methodBeingCopied] is provided, then type parameters defined by that
* method are assumed to be part of what is being written and hence valid
* types.
+ *
+ * Return `true` if some text was written.
*/
bool writeType(DartType type,
{bool addSupertypeProposals: false,

Powered by Google App Engine
This is Rietveld 408576698