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

Unified Diff: pkg/front_end/lib/src/base/instrumentation.dart

Issue 2863733003: Hook up full list literal type inference logic. (Closed)
Patch Set: Created 3 years, 7 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/analyzer_plugin/analyzer_plugin.iml ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/base/instrumentation.dart
diff --git a/pkg/front_end/lib/src/base/instrumentation.dart b/pkg/front_end/lib/src/base/instrumentation.dart
index ba78dcd4b50ea499c9ace74b71d188b04e2f518a..d80fff493ec715028ee6b27d1cbd8cc3acf25d5e 100644
--- a/pkg/front_end/lib/src/base/instrumentation.dart
+++ b/pkg/front_end/lib/src/base/instrumentation.dart
@@ -45,6 +45,18 @@ class InstrumentationValueForType extends InstrumentationValue {
}
}
+/// Instance of [InstrumentationValue] describing a list of [DartType]s.
+class InstrumentationValueForTypeArgs extends InstrumentationValue {
+ final List<DartType> types;
+
+ InstrumentationValueForTypeArgs(this.types);
+
+ @override
+ String toString() => types
+ .map((type) => new InstrumentationValueForType(type).toString())
+ .join(', ');
+}
+
/// Instance of [InstrumentationValue] which only matches the given literal
/// string.
class InstrumentationValueLiteral extends InstrumentationValue {
« no previous file with comments | « pkg/analyzer_plugin/analyzer_plugin.iml ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698