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

Unified Diff: pkg/analysis_server/test/index/store/single_source_container.dart

Issue 351813002: A local file-based Index implementation. (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
Index: pkg/analysis_server/test/index/store/single_source_container.dart
diff --git a/pkg/analysis_server/test/index/store/single_source_container.dart b/pkg/analysis_server/test/index/store/single_source_container.dart
new file mode 100644
index 0000000000000000000000000000000000000000..4968217698834d7cbb02a626417b86ff5c889f17
--- /dev/null
+++ b/pkg/analysis_server/test/index/store/single_source_container.dart
@@ -0,0 +1,20 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+library test.index.store_single_source_container;
+
+import 'package:analyzer/src/generated/source.dart';
+
+
+/**
+ * A [SourceContainer] with a single [Source].
+ */
+class SingleSourceContainer implements SourceContainer {
+ final Source _source;
+
+ SingleSourceContainer(this._source);
+
+ @override
+ bool contains(Source source) => source == _source;
+}

Powered by Google App Engine
This is Rietveld 408576698