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

Unified Diff: pkg/analyzer/test/src/summary/summary_common.dart

Issue 2974803002: Store FunctionType(s) of local functions by value. (Closed)
Patch Set: Created 3 years, 5 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/test/src/summary/summary_common.dart
diff --git a/pkg/analyzer/test/src/summary/summary_common.dart b/pkg/analyzer/test/src/summary/summary_common.dart
index accd5df475aecd7d8c84f8c3d7794bbd1b46544f..c4687fbfba3c53f571dc388e11d804d3e1ad4e8a 100644
--- a/pkg/analyzer/test/src/summary/summary_common.dart
+++ b/pkg/analyzer/test/src/summary/summary_common.dart
@@ -489,7 +489,6 @@ abstract class SummaryTest {
LinkedUnit linkedSourceUnit,
UnlinkedUnit unlinkedSourceUnit,
int numTypeParameters: 0,
- int localIndex: 0,
bool unresolvedHasName: false}) {
linkedSourceUnit ??= definingUnit;
unlinkedSourceUnit ??= unlinkedUnits[0];
@@ -528,7 +527,6 @@ abstract class SummaryTest {
expect(referenceResolution.kind, expectedKind);
expect(referenceResolution.unit, expectedTargetUnit);
expect(referenceResolution.numTypeParameters, numTypeParameters);
- expect(referenceResolution.localIndex, localIndex);
return reference;
}
@@ -1572,7 +1570,7 @@ f() {
int outerClosureIndex =
definingUnit.references[closureType.reference].containingReference;
checkReferenceIndex(outerClosureIndex, null, '',
- expectedKind: ReferenceKind.function, localIndex: 1);
+ expectedKind: ReferenceKind.function);
int topLevelFunctionIndex =
definingUnit.references[outerClosureIndex].containingReference;
checkReferenceIndex(topLevelFunctionIndex, null, 'f',
@@ -9267,7 +9265,6 @@ part "${'a'}.dart"; // <-part
expect(linkedReference0.containingReference, 0);
expect(linkedReference0.dependency, 0);
expect(linkedReference0.kind, ReferenceKind.unresolved);
- expect(linkedReference0.localIndex, 0);
expect(linkedReference0.name, '');
expect(linkedReference0.numTypeParameters, 0);
expect(linkedReference0.unit, 0);

Powered by Google App Engine
This is Rietveld 408576698