| 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/plugin.dart'; | 7 import 'package:analysis_server/plugin/plugin.dart'; |
| 8 import 'package:analysis_server/src/analysis_server.dart'; | 8 import 'package:analysis_server/src/analysis_server.dart'; |
| 9 import 'package:analysis_server/src/domain_analysis.dart'; | 9 import 'package:analysis_server/src/domain_analysis.dart'; |
| 10 import 'package:analysis_server/src/domain_completion.dart'; | 10 import 'package:analysis_server/src/domain_completion.dart'; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 } | 94 } |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * Validate the given extension by throwing an [ExtensionError] if it is not a | 97 * Validate the given extension by throwing an [ExtensionError] if it is not a |
| 98 * valid domain. | 98 * valid domain. |
| 99 */ | 99 */ |
| 100 void _validateDomainExtension(Object extension) { | 100 void _validateDomainExtension(Object extension) { |
| 101 if (extension is! RequestHandlerFactory) { | 101 if (extension is! RequestHandlerFactory) { |
| 102 String id = domainExtensionPoint.uniqueIdentifier; | 102 String id = domainExtensionPoint.uniqueIdentifier; |
| 103 throw new ExtensionError( | 103 throw new ExtensionError( |
| 104 'Extensions to the $id must be a RequestHandlerFactory'); | 104 'Extensions to $id must be a RequestHandlerFactory'); |
| 105 } | 105 } |
| 106 } | 106 } |
| 107 } | 107 } |
| OLD | NEW |