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

Unified Diff: pkg/analysis_server/lib/src/analysis_server.dart

Issue 629043002: Remove from AnalysisServer the 'test_' methods which now has non-test implementations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 | « no previous file | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/analysis_server.dart
diff --git a/pkg/analysis_server/lib/src/analysis_server.dart b/pkg/analysis_server/lib/src/analysis_server.dart
index 43a30915361ef059e0c5e8ca70524bb447547148..f2e2da695d22dccba541704d3411c7dc79e2ad3b 100644
--- a/pkg/analysis_server/lib/src/analysis_server.dart
+++ b/pkg/analysis_server/lib/src/analysis_server.dart
@@ -906,33 +906,6 @@ class AnalysisServer {
}
/**
- * Return the [CompilationUnit] of the Dart file with the given [path].
- * Return `null` if the file is not a part of any context.
- */
- CompilationUnit test_getResolvedCompilationUnit(String path) {
- // prepare AnalysisContext
- AnalysisContext context = getAnalysisContext(path);
- if (context == null) {
- return null;
- }
- // prepare sources
- Source unitSource = getSource(path);
- List<Source> librarySources = context.getLibrariesContaining(unitSource);
- if (librarySources.isEmpty) {
- return null;
- }
- // get a resolved unit
- return context.getResolvedCompilationUnit2(unitSource, librarySources[0]);
- }
-
- /**
- * Return `true` if all operations have been performed in this [AnalysisServer].
- */
- bool test_areOperationsFinished() {
- return operationQueue.isEmpty;
- }
-
- /**
* Schedules [performOperation] exection.
*/
void _schedulePerformOperation() {
« no previous file with comments | « no previous file | pkg/analysis_server/test/domain_analysis_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698