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

Unified Diff: pkg/analyzer/lib/src/generated/sdk_io.dart

Issue 681003002: Replace ${name} with $name where possible. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean up also implementation Created 6 years, 2 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 | « pkg/analyzer/lib/src/generated/sdk.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/sdk_io.dart
diff --git a/pkg/analyzer/lib/src/generated/sdk_io.dart b/pkg/analyzer/lib/src/generated/sdk_io.dart
index 974c3935327851e96c3d0c5e5b62c3b74250160f..920dccc4d31ac355f8ad83fe9abd23c9ec17edb4 100644
--- a/pkg/analyzer/lib/src/generated/sdk_io.dart
+++ b/pkg/analyzer/lib/src/generated/sdk_io.dart
@@ -243,7 +243,7 @@ class DirectoryBasedDartSdk implements DartSdk {
JavaFile file = new JavaFile.fromUri(uri);
String filePath = file.getAbsolutePath();
String libPath = libraryDirectory.getAbsolutePath();
- if (!filePath.startsWith("${libPath}${JavaFile.separator}")) {
+ if (!filePath.startsWith("$libPath${JavaFile.separator}")) {
return null;
}
filePath = filePath.substring(libPath.length + 1);
@@ -254,17 +254,17 @@ class DirectoryBasedDartSdk implements DartSdk {
try {
return new FileBasedSource.con2(parseUriWithException(path), file);
} on URISyntaxException catch (exception) {
- AnalysisEngine.instance.logger.logInformation2("Failed to create URI: ${path}", exception);
+ AnalysisEngine.instance.logger.logInformation2("Failed to create URI: $path", exception);
return null;
}
}
libraryPath = new JavaFile(libraryPath).getParent();
- if (filePath.startsWith("${libraryPath}${JavaFile.separator}")) {
+ if (filePath.startsWith("$libraryPath${JavaFile.separator}")) {
String path = "${library.shortName}/${filePath.substring(libraryPath.length + 1)}";
try {
return new FileBasedSource.con2(parseUriWithException(path), file);
} on URISyntaxException catch (exception) {
- AnalysisEngine.instance.logger.logInformation2("Failed to create URI: ${path}", exception);
+ AnalysisEngine.instance.logger.logInformation2("Failed to create URI: $path", exception);
return null;
}
}
@@ -369,7 +369,7 @@ class DirectoryBasedDartSdk implements DartSdk {
return null;
}
JavaFile libDir = new JavaFile.relative(dir, libraryName);
- JavaFile docFile = new JavaFile.relative(libDir, "${libraryName}${_DOC_FILE_SUFFIX}");
+ JavaFile docFile = new JavaFile.relative(libDir, "$libraryName$_DOC_FILE_SUFFIX");
if (docFile.exists()) {
return docFile;
}
« no previous file with comments | « pkg/analyzer/lib/src/generated/sdk.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698