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

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

Issue 1131423002: Clean up many generated constructors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Comment change Created 5 years, 7 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/scanner.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 3a9f239c4cff0b5ea3a95d274232fe88d173b4bd..cd9c959529ea296f5b208401f6bc67d21db14e6d 100644
--- a/pkg/analyzer/lib/src/generated/sdk_io.dart
+++ b/pkg/analyzer/lib/src/generated/sdk_io.dart
@@ -397,7 +397,7 @@ class DirectoryBasedDartSdk implements DartSdk {
if (filePath.replaceAll('\\', '/') == libraryPath) {
String path = library.shortName;
try {
- return new FileBasedSource.con2(parseUriWithException(path), file);
+ return new FileBasedSource(file, parseUriWithException(path));
} on URISyntaxException catch (exception, stackTrace) {
AnalysisEngine.instance.logger.logInformation(
"Failed to create URI: $path",
@@ -410,7 +410,7 @@ class DirectoryBasedDartSdk implements DartSdk {
String path =
"${library.shortName}/${filePath.substring(libraryPath.length + 1)}";
try {
- return new FileBasedSource.con2(parseUriWithException(path), file);
+ return new FileBasedSource(file, parseUriWithException(path));
} on URISyntaxException catch (exception, stackTrace) {
AnalysisEngine.instance.logger.logInformation(
"Failed to create URI: $path",
@@ -494,7 +494,7 @@ class DirectoryBasedDartSdk implements DartSdk {
file = file.getParentFile();
file = new JavaFile.relative(file, relativePath);
}
- return new FileBasedSource.con2(parseUriWithException(dartUri), file);
+ return new FileBasedSource(file, parseUriWithException(dartUri));
} on URISyntaxException {
return null;
}
@@ -548,7 +548,7 @@ class SdkLibrariesReader {
* of the file is already known to be [libraryFileContents].
*/
LibraryMap readFromFile(JavaFile file, String libraryFileContents) =>
- readFromSource(new FileBasedSource.con1(file), libraryFileContents);
+ readFromSource(new FileBasedSource(file), libraryFileContents);
/**
* Return the library map read from the given [source], given that the content
« no previous file with comments | « pkg/analyzer/lib/src/generated/scanner.dart ('k') | pkg/analyzer/lib/src/generated/source.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698