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

Side by Side Diff: pkg/analysis_server/lib/src/plugin/server_plugin.dart

Issue 1426353002: Fix glob patterns to work on Windows (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 analysis_server.src.plugin.server_plugin; 5 library analysis_server.src.plugin.server_plugin;
6 6
7 import 'package:analysis_server/plugin/analysis/analysis_domain.dart'; 7 import 'package:analysis_server/plugin/analysis/analysis_domain.dart';
8 import 'package:analysis_server/plugin/analysis/analyzed_files.dart'; 8 import 'package:analysis_server/plugin/analysis/analyzed_files.dart';
9 import 'package:analysis_server/plugin/analysis/navigation/navigation.dart'; 9 import 'package:analysis_server/plugin/analysis/navigation/navigation.dart';
10 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart' ; 10 import 'package:analysis_server/plugin/analysis/navigation/navigation_core.dart' ;
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 OCCURRENCES_CONTRIBUTOR_EXTENSION_POINT, 269 OCCURRENCES_CONTRIBUTOR_EXTENSION_POINT,
270 _validateOccurrencesContributorExtension); 270 _validateOccurrencesContributorExtension);
271 } 271 }
272 272
273 @override 273 @override
274 void registerExtensions(RegisterExtension registerExtension) { 274 void registerExtensions(RegisterExtension registerExtension) {
275 // 275 //
276 // Register analyzed file patterns. 276 // Register analyzed file patterns.
277 // 277 //
278 List<String> patterns = <String>[ 278 List<String> patterns = <String>[
279 '/**/*.${AnalysisEngine.SUFFIX_DART}', 279 '{*:/,/}**/*.${AnalysisEngine.SUFFIX_DART}',
280 '/**/*.${AnalysisEngine.SUFFIX_HTML}', 280 '{*:/,/}**/*.${AnalysisEngine.SUFFIX_HTML}',
281 '/**/*.${AnalysisEngine.SUFFIX_HTM}', 281 '{*:/,/}**/*.${AnalysisEngine.SUFFIX_HTM}',
282 '/**/${AnalysisEngine.ANALYSIS_OPTIONS_FILE}' 282 '{*:/,/}**/${AnalysisEngine.ANALYSIS_OPTIONS_FILE}'
283 ]; 283 ];
284 registerExtension(ANALYZED_FILE_PATTERNS_EXTENSION_POINT_ID, patterns); 284 registerExtension(ANALYZED_FILE_PATTERNS_EXTENSION_POINT_ID, patterns);
285 // 285 //
286 // Register assist contributors. 286 // Register assist contributors.
287 // 287 //
288 registerExtension( 288 registerExtension(
289 ASSIST_CONTRIBUTOR_EXTENSION_POINT_ID, new DefaultAssistContributor()); 289 ASSIST_CONTRIBUTOR_EXTENSION_POINT_ID, new DefaultAssistContributor());
290 // 290 //
291 // Register completion contributors. 291 // Register completion contributors.
292 // 292 //
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 * valid analysis domain receiver. 440 * valid analysis domain receiver.
441 */ 441 */
442 void _validateSetAnalysisDomainFunction(Object extension) { 442 void _validateSetAnalysisDomainFunction(Object extension) {
443 if (extension is! SetAnalysisDomain) { 443 if (extension is! SetAnalysisDomain) {
444 String id = setAnalysisDomainExtensionPoint.uniqueIdentifier; 444 String id = setAnalysisDomainExtensionPoint.uniqueIdentifier;
445 throw new ExtensionError( 445 throw new ExtensionError(
446 'Extensions to $id must be a SetAnalysisDomain function'); 446 'Extensions to $id must be a SetAnalysisDomain function');
447 } 447 }
448 } 448 }
449 } 449 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698