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

Side by Side Diff: pkg/analysis_server/test/context_manager_test.dart

Issue 2952233002: Fix hints and clean-up obsolete comment syntax (TBR) (Closed)
Patch Set: Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library test.context.directory.manager; 5 library test.context.directory.manager;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:analysis_server/src/context_manager.dart'; 9 import 'package:analysis_server/src/context_manager.dart';
10 import 'package:analysis_server/src/plugin/notification_manager.dart'; 10 import 'package:analysis_server/src/plugin/notification_manager.dart';
(...skipping 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after
2740 2740
2741 @override 2741 @override
2742 void removeContext(Folder folder, List<String> flushedFiles) { 2742 void removeContext(Folder folder, List<String> flushedFiles) {
2743 String path = folder.path; 2743 String path = folder.path;
2744 expect(currentContextRoots, contains(path)); 2744 expect(currentContextRoots, contains(path));
2745 currentContextTimestamps.remove(path); 2745 currentContextTimestamps.remove(path);
2746 currentContextFilePaths.remove(path); 2746 currentContextFilePaths.remove(path);
2747 currentContextSources.remove(path); 2747 currentContextSources.remove(path);
2748 lastFlushedFiles = flushedFiles; 2748 lastFlushedFiles = flushedFiles;
2749 } 2749 }
2750
2751 @override
2752 void updateContextPackageUriResolver(AnalysisContext context) {
2753 // Nothing to do.
2754 }
2755 } 2750 }
2756 2751
2757 /** 2752 /**
2758 * A [Source] that knows it's [fullName]. 2753 * A [Source] that knows it's [fullName].
2759 */ 2754 */
2760 class TestSource implements Source { 2755 class TestSource implements Source {
2761 TestSource(); 2756 TestSource();
2762 2757
2763 @override 2758 @override
2764 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation); 2759 noSuchMethod(Invocation invocation) => super.noSuchMethod(invocation);
2765 } 2760 }
2766 2761
2767 class TestUriResolver extends UriResolver { 2762 class TestUriResolver extends UriResolver {
2768 Map<Uri, Source> uriMap; 2763 Map<Uri, Source> uriMap;
2769 2764
2770 TestUriResolver(this.uriMap); 2765 TestUriResolver(this.uriMap);
2771 2766
2772 @override 2767 @override
2773 Source resolveAbsolute(Uri uri, [Uri actualUri]) { 2768 Source resolveAbsolute(Uri uri, [Uri actualUri]) {
2774 return uriMap[uri]; 2769 return uriMap[uri];
2775 } 2770 }
2776 } 2771 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/lib/src/protocol/protocol_internal.dart ('k') | pkg/analysis_server/test/edit/sort_members_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698