| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 } | 264 } |
| 265 | 265 |
| 266 @override | 266 @override |
| 267 void registerExtensions(RegisterExtension registerExtension) { | 267 void registerExtensions(RegisterExtension registerExtension) { |
| 268 // | 268 // |
| 269 // Register analyze file functions. | 269 // Register analyze file functions. |
| 270 // | 270 // |
| 271 registerExtension( | 271 registerExtension( |
| 272 ANALYZE_FILE_EXTENSION_POINT_ID, | 272 ANALYZE_FILE_EXTENSION_POINT_ID, |
| 273 (File file) => AnalysisEngine.isDartFileName(file.path) || | 273 (File file) => AnalysisEngine.isDartFileName(file.path) || |
| 274 AnalysisEngine.isHtmlFileName(file.path)); | 274 AnalysisEngine.isHtmlFileName(file.path) || |
| 275 AnalysisEngine.isAnalysisOptionsFileName(file.path)); |
| 275 // | 276 // |
| 276 // Register assist contributors. | 277 // Register assist contributors. |
| 277 // | 278 // |
| 278 registerExtension( | 279 registerExtension( |
| 279 ASSIST_CONTRIBUTOR_EXTENSION_POINT_ID, new DefaultAssistContributor()); | 280 ASSIST_CONTRIBUTOR_EXTENSION_POINT_ID, new DefaultAssistContributor()); |
| 280 // | 281 // |
| 281 // Register completion contributors. | 282 // Register completion contributors. |
| 282 // | 283 // |
| 283 // TODO(brianwilkerson) Register the completion contributors. | 284 // TODO(brianwilkerson) Register the completion contributors. |
| 284 // registerExtension(COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, ???); | 285 // registerExtension(COMPLETION_CONTRIBUTOR_EXTENSION_POINT_ID, ???); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 * valid analysis domain receiver. | 419 * valid analysis domain receiver. |
| 419 */ | 420 */ |
| 420 void _validateSetAnalysisDomainFunction(Object extension) { | 421 void _validateSetAnalysisDomainFunction(Object extension) { |
| 421 if (extension is! SetAnalysisDomain) { | 422 if (extension is! SetAnalysisDomain) { |
| 422 String id = setAnalysisDomainExtensionPoint.uniqueIdentifier; | 423 String id = setAnalysisDomainExtensionPoint.uniqueIdentifier; |
| 423 throw new ExtensionError( | 424 throw new ExtensionError( |
| 424 'Extensions to $id must be a SetAnalysisDomain function'); | 425 'Extensions to $id must be a SetAnalysisDomain function'); |
| 425 } | 426 } |
| 426 } | 427 } |
| 427 } | 428 } |
| OLD | NEW |