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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/utils.dart

Issue 12340041: Disambiguate a library prefix and a local variable in pkg/scheduled_test/lib/src/descriptor/utils.d… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/lib/src/descriptor/utils.dart
===================================================================
--- pkg/scheduled_test/lib/src/descriptor/utils.dart (revision 18941)
+++ pkg/scheduled_test/lib/src/descriptor/utils.dart (working copy)
@@ -18,11 +18,11 @@
/// [type] is used for error reporting. It should be capitalized.
String entryMatchingPattern(String type, String parent, Pattern pattern) {
if (pattern is String) {
- var path = path.join(parent, pattern);
- if (new File(path).existsSync() || new Directory(path).existsSync()) {
- return path;
+ var fullPath = path.join(parent, pattern);
+ if (new File(fullPath).existsSync() || new Directory(fullPath).existsSync()) {
+ return fullPath;
}
- throw "$type not found: '$path'.";
+ throw "$type not found: '$fullPath'.";
}
var matchingEntries = new Directory(parent).listSync()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698