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

Unified Diff: pkg/analyzer_experimental/lib/src/generated/source_io.dart

Issue 16256021: Remove trailing spaces in analyzer_experimental (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: pkg/analyzer_experimental/lib/src/generated/source_io.dart
diff --git a/pkg/analyzer_experimental/lib/src/generated/source_io.dart b/pkg/analyzer_experimental/lib/src/generated/source_io.dart
index 7b7f4b0ca3296847e5bb76a0a0e676da866824eb..3decc7b76c1fbfd5aa220500b46fbfb09b64b1de 100644
--- a/pkg/analyzer_experimental/lib/src/generated/source_io.dart
+++ b/pkg/analyzer_experimental/lib/src/generated/source_io.dart
@@ -1,8 +1,6 @@
// This code was auto-generated, is not intended to be edited, and is subject to
// significant change. Please see the README file for more information.
-
library engine.source.io;
-
import 'source.dart';
import 'dart:io';
import 'java_core.dart';
@@ -10,35 +8,33 @@ import 'java_io.dart';
import 'sdk.dart' show DartSdk;
import 'engine.dart' show AnalysisContext, AnalysisEngine;
export 'source.dart';
-
-
/**
* Instances of the class {@code FileBasedSource} implement a source that represents a file.
* @coverage dart.engine.source
*/
class FileBasedSource implements Source {
-
+
/**
* The content cache used to access the contents of this source if they have been overridden from
* what is on disk or cached.
*/
ContentCache _contentCache;
-
+
/**
* The file represented by this source.
*/
JavaFile _file;
-
+
/**
* The cached encoding for this source.
*/
String _encoding;
-
+
/**
* The kind of URI from which this source was originally derived.
*/
UriKind _uriKind;
-
+
/**
* Initialize a newly created source object. The source object is assumed to not be in a system
* library.
@@ -46,12 +42,12 @@ class FileBasedSource implements Source {
* @param file the file represented by this source
*/
FileBasedSource.con1(ContentCache contentCache, JavaFile file) {
- _jtd_constructor_336_impl(contentCache, file);
+ _jtd_constructor_338_impl(contentCache, file);
}
- _jtd_constructor_336_impl(ContentCache contentCache, JavaFile file) {
- _jtd_constructor_337_impl(contentCache, file, UriKind.FILE_URI);
+ _jtd_constructor_338_impl(ContentCache contentCache, JavaFile file) {
+ _jtd_constructor_339_impl(contentCache, file, UriKind.FILE_URI);
}
-
+
/**
* Initialize a newly created source object.
* @param contentCache the content cache used to access the contents of this source
@@ -59,9 +55,9 @@ class FileBasedSource implements Source {
* @param flags {@code true} if this source is in one of the system libraries
*/
FileBasedSource.con2(ContentCache contentCache2, JavaFile file2, UriKind uriKind2) {
- _jtd_constructor_337_impl(contentCache2, file2, uriKind2);
+ _jtd_constructor_339_impl(contentCache2, file2, uriKind2);
}
- _jtd_constructor_337_impl(ContentCache contentCache2, JavaFile file2, UriKind uriKind2) {
+ _jtd_constructor_339_impl(ContentCache contentCache2, JavaFile file2, UriKind uriKind2) {
this._contentCache = contentCache2;
this._file = file2;
this._uriKind = uriKind2;
@@ -106,7 +102,7 @@ class FileBasedSource implements Source {
}
return _file.getAbsolutePath();
}
-
+
/**
* Return the file represented by this source. This is an internal method that is only intended to
* be used by {@link UriResolver}.
@@ -114,7 +110,6 @@ class FileBasedSource implements Source {
*/
JavaFile get file => _file;
}
-
/**
* Instances of the class {@code PackageUriResolver} resolve {@code package} URI's in the context of
* an application.
@@ -125,29 +120,29 @@ class FileBasedSource implements Source {
* @coverage dart.engine.source
*/
class PackageUriResolver extends UriResolver {
-
+
/**
* The package directories that {@code package} URI's are assumed to be relative to.
*/
List<JavaFile> _packagesDirectories;
-
+
/**
* The name of the {@code package} scheme.
*/
- static String _PACKAGE_SCHEME = "package";
-
+ static String PACKAGE_SCHEME = "package";
+
/**
* Log exceptions thrown with the message "Required key not available" only once.
*/
static bool _CanLogRequiredKeyIoException = true;
-
+
/**
* Return {@code true} if the given URI is a {@code package} URI.
* @param uri the URI being tested
* @return {@code true} if the given URI is a {@code package} URI
*/
- static bool isPackageUri(Uri uri) => _PACKAGE_SCHEME == uri.scheme;
-
+ static bool isPackageUri(Uri uri) => PACKAGE_SCHEME == uri.scheme;
+
/**
* Initialize a newly created resolver to resolve {@code package} URI's relative to the given
* package directories.
@@ -208,7 +203,7 @@ class PackageUriResolver extends UriResolver {
String pkgCanonicalPath = pkgFolder.getCanonicalPath();
if (sourcePath.startsWith(pkgCanonicalPath)) {
String relPath = sourcePath.substring(pkgCanonicalPath.length);
- return parseUriWithException("${_PACKAGE_SCHEME}:${pkgFolder.getName()}${relPath}");
+ return parseUriWithException("${PACKAGE_SCHEME}:${pkgFolder.getName()}${relPath}");
}
} catch (e) {
}
@@ -218,7 +213,7 @@ class PackageUriResolver extends UriResolver {
}
return null;
}
-
+
/**
* Answer the canonical file for the specified package.
* @param packagesDirectory the "packages" directory (not {@code null})
@@ -242,14 +237,13 @@ class PackageUriResolver extends UriResolver {
return new JavaFile.relative(pkgDir, relPath.replaceAll('/', JavaFile.separatorChar));
}
}
-
/**
* Instances of the class {@link DirectoryBasedSourceContainer} represent a source container that
* contains all sources within a given directory.
* @coverage dart.engine.source
*/
class DirectoryBasedSourceContainer implements SourceContainer {
-
+
/**
* Append the system file separator to the given path unless the path already ends with a
* separator.
@@ -262,37 +256,37 @@ class DirectoryBasedSourceContainer implements SourceContainer {
}
return "${path}${JavaFile.separator}";
}
-
+
/**
* The container's path (not {@code null}).
*/
String _path;
-
+
/**
* Construct a container representing the specified directory and containing any sources whose{@link Source#getFullName()} starts with the directory's path. This is a convenience method,
* fully equivalent to {@link DirectoryBasedSourceContainer#DirectoryBasedSourceContainer(String)}.
* @param directory the directory (not {@code null})
*/
DirectoryBasedSourceContainer.con1(JavaFile directory) {
- _jtd_constructor_334_impl(directory);
+ _jtd_constructor_336_impl(directory);
}
- _jtd_constructor_334_impl(JavaFile directory) {
- _jtd_constructor_335_impl(directory.getPath());
+ _jtd_constructor_336_impl(JavaFile directory) {
+ _jtd_constructor_337_impl(directory.getPath());
}
-
+
/**
* Construct a container representing the specified path and containing any sources whose{@link Source#getFullName()} starts with the specified path.
* @param path the path (not {@code null} and not empty)
*/
DirectoryBasedSourceContainer.con2(String path2) {
- _jtd_constructor_335_impl(path2);
+ _jtd_constructor_337_impl(path2);
}
- _jtd_constructor_335_impl(String path2) {
+ _jtd_constructor_337_impl(String path2) {
this._path = appendFileSeparator(path2);
}
bool contains(Source source) => source.fullName.startsWith(_path);
bool operator ==(Object obj) => (obj is DirectoryBasedSourceContainer) && ((obj as DirectoryBasedSourceContainer)).path == path;
-
+
/**
* Answer the receiver's path, used to determine if a source is contained in the receiver.
* @return the path (not {@code null}, not empty)
@@ -301,24 +295,23 @@ class DirectoryBasedSourceContainer implements SourceContainer {
int get hashCode => _path.hashCode;
String toString() => "SourceContainer[${_path}]";
}
-
/**
* Instances of the class {@code FileUriResolver} resolve {@code file} URI's.
* @coverage dart.engine.source
*/
class FileUriResolver extends UriResolver {
-
+
/**
* The name of the {@code file} scheme.
*/
- static String _FILE_SCHEME = "file";
-
+ static String FILE_SCHEME = "file";
+
/**
* Return {@code true} if the given URI is a {@code file} URI.
* @param uri the URI being tested
* @return {@code true} if the given URI is a {@code file} URI
*/
- static bool isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME;
+ static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME;
Source fromEncoding(ContentCache contentCache, UriKind kind, Uri uri) {
if (identical(kind, UriKind.FILE_URI)) {
return new FileBasedSource.con2(contentCache, new JavaFile.fromUri(uri), kind);

Powered by Google App Engine
This is Rietveld 408576698