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

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

Issue 2925583003: Adjust expectations for parameterized closures to match front_end behavior. (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
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/strong.status » ('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 a350b5bb6d89cc721117e29a4d2dcdfc8aea28e3..03117e27f90d56822e142fc8cf052ac2749b18a4 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
@@ -339,7 +339,7 @@ class _InstrumentationVisitor extends RecursiveAstVisitor<Null> {
if (node.parent is! FunctionDeclaration) {
DartType type = node.staticType;
if (type is FunctionType) {
- _instrumentation.record(uri, node.offset, 'returnType',
+ _instrumentation.record(uri, node.parameters.offset, 'returnType',
new _InstrumentationValueForType(type.returnType, elementNamer));
List<FormalParameter> parameters = node.parameters.parameters;
for (int i = 0; i < parameters.length; i++) {
« no previous file with comments | « no previous file | pkg/front_end/test/fasta/strong.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698