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

Unified Diff: pkg/analyzer/test/src/task/strong/front_end_inference_test.dart

Issue 2865403007: Get rid of promotedType=none annotations (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 | « no previous file | pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
diff --git a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
index d50b7e52eabd6542e32706abfe4862ff5cc4780e..994733059af9e8c0ee36fc8965cc55107d14d8a1 100644
--- a/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
+++ b/pkg/analyzer/test/src/task/strong/front_end_inference_test.dart
@@ -325,10 +325,7 @@ class _InstrumentationVisitor extends RecursiveAstVisitor<Null> {
if (node.inGetterContext() && !node.inDeclarationContext()) {
int offset = node.offset;
DartType type = node.staticType;
- if (identical(type, elementType)) {
- _instrumentation.record(uri, offset, 'promotedType',
- const fasta.InstrumentationValueLiteral('none'));
- } else {
+ if (!identical(type, elementType)) {
_instrumentation.record(uri, offset, 'promotedType',
new _InstrumentationValueForType(type));
}
« no previous file with comments | « no previous file | pkg/front_end/lib/src/fasta/type_inference/type_inferrer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698