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

Unified Diff: client/tests/dartc/test_config.dart

Issue 9495006: Fix static warnings in test_suite.dart from local variables shadowing parameters or functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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 | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tests/dartc/test_config.dart
diff --git a/client/tests/dartc/test_config.dart b/client/tests/dartc/test_config.dart
index 180ca03511c5d5d3658cb62b563dd5343eca5e20..ba19cc76fe9c133b5496b24cba0750e8d8014364 100644
--- a/client/tests/dartc/test_config.dart
+++ b/client/tests/dartc/test_config.dart
@@ -29,8 +29,10 @@ class ClientDartcTestSuite extends DartcCompilationTestSuite {
bool isTestFile(String filename) {
if (!filename.endsWith(".dart")) return false;
- var options = optionsFromFile(filename);
- return optionsFromFile(filename)["containsLeadingHash"];
+ // Using readOptionsFromFile here causes the file to be read twice,
+ // because readOptionsFromFile is called again in the superclass.
+ // Avoid this in new code.
+ return readOptionsFromFile(filename)["containsLeadingHash"];
}
bool listRecursively() => true;
« no previous file with comments | « no previous file | tools/testing/dart/test_suite.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698