OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |