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

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

Issue 351283003: Move Tokenfactory, AstFactory and ElementFactory from tests to the testing/ Folder. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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/source.dart ('k') | pkg/analyzer/lib/src/generated/testing/ast_factory.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/source_io.dart
diff --git a/pkg/analyzer/lib/src/generated/source_io.dart b/pkg/analyzer/lib/src/generated/source_io.dart
index 962368c179ead5f5a4738640fb90b66e1a483f8c..01c6fbf1abd6229a8011bddcfe59f4320dff36c2 100644
--- a/pkg/analyzer/lib/src/generated/source_io.dart
+++ b/pkg/analyzer/lib/src/generated/source_io.dart
@@ -283,47 +283,6 @@ class LocalSourcePredicate_TRUE implements LocalSourcePredicate {
}
/**
- * An implementation of an non-existing [Source].
- */
-class NonExistingSource implements Source {
- final String _name;
-
- final UriKind uriKind;
-
- NonExistingSource(this._name, this.uriKind);
-
- @override
- bool exists() => false;
-
- @override
- TimestampedData<String> get contents {
- throw new UnsupportedOperationException("${_name}does not exist.");
- }
-
- @override
- String get encoding {
- throw new UnsupportedOperationException("${_name}does not exist.");
- }
-
- @override
- String get fullName => _name;
-
- @override
- int get modificationStamp => 0;
-
- @override
- String get shortName => _name;
-
- @override
- bool get isInSystemLibrary => false;
-
- @override
- Source resolveRelative(Uri relativeUri) {
- throw new UnsupportedOperationException("${_name}does not exist.");
- }
-}
-
-/**
* Instances of the class `PackageUriResolver` resolve `package` URI's in the context of
* an application.
*
« no previous file with comments | « pkg/analyzer/lib/src/generated/source.dart ('k') | pkg/analyzer/lib/src/generated/testing/ast_factory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698