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

Unified Diff: pkg/dev_compiler/lib/src/js_ast/type_printer.dart

Issue 3006893002: Refactor fuzzy arrow hints. (Closed)
Patch Set: Reland and refactor fuzzy arrow hints. Created 3 years, 4 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
« no previous file with comments | « pkg/compiler/analysis_options.yaml ('k') | pkg/front_end/analysis_options.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/dev_compiler/lib/src/js_ast/type_printer.dart
diff --git a/pkg/dev_compiler/lib/src/js_ast/type_printer.dart b/pkg/dev_compiler/lib/src/js_ast/type_printer.dart
index 35e7be6379cc56a07777da85954fc397387cf662..ff859aa6c942a5fd50d620769d1420596112616a 100644
--- a/pkg/dev_compiler/lib/src/js_ast/type_printer.dart
+++ b/pkg/dev_compiler/lib/src/js_ast/type_printer.dart
@@ -8,7 +8,8 @@ abstract class _TypePrinterBase implements TypeRefVisitor {
void out(String s);
void visit(Node node);
- void outSeparated(String separator, Iterable items, [action(dynamic item)]) {
+ void outSeparated<T extends Node>(String separator, Iterable<T> items,
+ [action(T item)]) {
action ??= visit;
var first = true;
for (var item in items) {
« no previous file with comments | « pkg/compiler/analysis_options.yaml ('k') | pkg/front_end/analysis_options.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698