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

Unified Diff: tests/compiler/dart2js/kernel/impact_test.dart

Issue 2942763002: Late night strong mode cleaning. (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
Index: tests/compiler/dart2js/kernel/impact_test.dart
diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
index 32a8303f510601942ee0275ea373f1dae325ea03..cadae7bded54be1375acab8f4b6057dfddc1cbdb 100644
--- a/tests/compiler/dart2js/kernel/impact_test.dart
+++ b/tests/compiler/dart2js/kernel/impact_test.dart
@@ -750,7 +750,7 @@ main(List<String> args) {
checkLibrary(compiler, kernelElementMap, compiler.mainApp,
fullTest: fullTest);
- compiler.libraryLoader.libraries.forEach((LibraryElement library) {
+ compiler.libraryLoader.libraries.forEach((library) {
if (library == compiler.mainApp) return;
checkLibrary(compiler, kernelElementMap, library, fullTest: fullTest);
});
@@ -760,10 +760,12 @@ main(List<String> args) {
void checkLibrary(Compiler compiler, KernelToElementMapMixin elementMap,
LibraryElement library,
{bool fullTest: false}) {
- library.forEachLocalMember((AstElement element) {
+ library.forEachLocalMember((_element) {
+ AstElement element = _element;
if (element.isClass) {
ClassElement cls = element;
- cls.forEachLocalMember((AstElement member) {
+ cls.forEachLocalMember((_member) {
+ AstElement member = _member;
checkElement(compiler, elementMap, member, fullTest: fullTest);
});
} else if (element.isTypedef) {
@@ -863,7 +865,7 @@ ResolutionImpact laxImpact(
}
}
if (constructor.resolvedAst.kind == ResolvedAstKind.PARSED) {
- var function = constructor.resolvedAst.node;
+ dynamic function = constructor.resolvedAst.node;
if (function.initializers != null) {
TreeElements elements = constructor.resolvedAst.elements;
for (var initializer in function.initializers) {
« no previous file with comments | « tests/compiler/dart2js/kernel/class_hierarchy_test.dart ('k') | tests/compiler/dart2js/kernel/visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698