Index: pkg/analyzer/test/src/summary/resynthesize_common.dart |
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart |
index ef645ecd62e596dafd98ed5b638a9c7286262c23..f3b679413ef11a4296aaa2f4a9ce5de636f20e33 100644 |
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart |
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart |
@@ -897,15 +897,6 @@ abstract class AbstractResynthesizeTest extends AbstractSingleUnitTest { |
rLabels[i], oLabels[i], '$desc label ${oLabels[i].name}'); |
} |
} |
- if (original is! Member) { |
- List<LocalVariableElement> rVariables = resynthesized.localVariables; |
- List<LocalVariableElement> oVariables = original.localVariables; |
- expect(rVariables, hasLength(oVariables.length)); |
- for (int i = 0; i < oVariables.length; i++) { |
- compareVariableElements(rVariables[i], oVariables[i], |
- '$desc local variable ${oVariables[i].name}'); |
- } |
- } |
} |
void compareMetadata(List<ElementAnnotation> resynthesized, |
@@ -10607,136 +10598,6 @@ dynamic main() {} |
} |
} |
- test_localVariables_inConstructor() { |
- var library = checkLibrary(r''' |
-class C { |
- C() { |
- int v; |
- f() {} |
- } |
-} |
-'''); |
- if (isStrongMode) { |
- checkElementText( |
- library, |
- r''' |
-class C { |
- C(); |
-} |
-'''); |
- } else { |
- checkElementText( |
- library, |
- r''' |
-class C { |
- C(); |
-} |
-'''); |
- } |
- } |
- |
- test_localVariables_inLocalFunction() { |
- var library = checkLibrary(r''' |
-f() { |
- f1() { |
- int v1 = 1; |
- } // 2 |
- f2() { |
- int v1 = 1; |
- f3() { |
- int v2 = 1; |
- } |
- } |
-} |
-'''); |
- if (isStrongMode) { |
- checkElementText( |
- library, |
- r''' |
-dynamic f() {} |
-'''); |
- } else { |
- checkElementText( |
- library, |
- r''' |
-dynamic f() {} |
-'''); |
- } |
- } |
- |
- test_localVariables_inMethod() { |
- var library = checkLibrary(r''' |
-class C { |
- m() { |
- int v; |
- } |
-} |
-'''); |
- if (isStrongMode) { |
- checkElementText( |
- library, |
- r''' |
-class C { |
- dynamic m() {} |
-} |
-'''); |
- } else { |
- checkElementText( |
- library, |
- r''' |
-class C { |
- dynamic m() {} |
-} |
-'''); |
- } |
- } |
- |
- test_localVariables_inTopLevelFunction() { |
- var library = checkLibrary(r''' |
-main() { |
- int v1 = 1; |
- { |
- const String v2 = 'bbb'; |
- } |
- Map<int, List<double>> v3; |
-} |
-'''); |
- if (isStrongMode) { |
- checkElementText( |
- library, |
- r''' |
-dynamic main() {} |
-'''); |
- } else { |
- checkElementText( |
- library, |
- r''' |
-dynamic main() {} |
-'''); |
- } |
- } |
- |
- test_localVariables_inTopLevelGetter() { |
- var library = checkLibrary(r''' |
-get g { |
- int v; |
-} |
-'''); |
- if (isStrongMode) { |
- checkElementText( |
- library, |
- r''' |
-dynamic get g {} |
-'''); |
- } else { |
- checkElementText( |
- library, |
- r''' |
-dynamic get g {} |
-'''); |
- } |
- } |
- |
test_main_class() { |
var library = checkLibrary('class main {}'); |
if (isStrongMode) { |