| 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 analyzer.src.plugin.engine_plugin; | 5 library analyzer.src.plugin.engine_plugin; |
| 6 | 6 |
| 7 import 'package:analyzer/plugin/task.dart'; | 7 import 'package:analyzer/plugin/task.dart'; |
| 8 import 'package:analyzer/src/task/dart.dart'; | 8 import 'package:analyzer/src/task/dart.dart'; |
| 9 import 'package:analyzer/src/task/general.dart'; | 9 import 'package:analyzer/src/task/general.dart'; |
| 10 import 'package:analyzer/src/task/html.dart'; | 10 import 'package:analyzer/src/task/html.dart'; |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 registerExtension(taskId, ResolveLibraryReferencesTask.DESCRIPTOR); | 87 registerExtension(taskId, ResolveLibraryReferencesTask.DESCRIPTOR); |
| 88 registerExtension(taskId, ResolveLibraryTypeNamesTask.DESCRIPTOR); | 88 registerExtension(taskId, ResolveLibraryTypeNamesTask.DESCRIPTOR); |
| 89 registerExtension(taskId, ResolveUnitReferencesTask.DESCRIPTOR); | 89 registerExtension(taskId, ResolveUnitReferencesTask.DESCRIPTOR); |
| 90 registerExtension(taskId, ResolveUnitTypeNamesTask.DESCRIPTOR); | 90 registerExtension(taskId, ResolveUnitTypeNamesTask.DESCRIPTOR); |
| 91 registerExtension(taskId, ResolveVariableReferencesTask.DESCRIPTOR); | 91 registerExtension(taskId, ResolveVariableReferencesTask.DESCRIPTOR); |
| 92 registerExtension(taskId, ScanDartTask.DESCRIPTOR); | 92 registerExtension(taskId, ScanDartTask.DESCRIPTOR); |
| 93 registerExtension(taskId, VerifyUnitTask.DESCRIPTOR); | 93 registerExtension(taskId, VerifyUnitTask.DESCRIPTOR); |
| 94 // | 94 // |
| 95 // Register HTML tasks. | 95 // Register HTML tasks. |
| 96 // | 96 // |
| 97 registerExtension(taskId, DartScriptsTask.DESCRIPTOR); |
| 97 registerExtension(taskId, HtmlErrorsTask.DESCRIPTOR); | 98 registerExtension(taskId, HtmlErrorsTask.DESCRIPTOR); |
| 98 registerExtension(taskId, ParseHtmlTask.DESCRIPTOR); | 99 registerExtension(taskId, ParseHtmlTask.DESCRIPTOR); |
| 99 registerExtension(taskId, ReferencedLibrariesTask.DESCRIPTOR); | |
| 100 } | 100 } |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * Validate the given extension by throwing an [ExtensionError] if it is not a | 103 * Validate the given extension by throwing an [ExtensionError] if it is not a |
| 104 * valid domain. | 104 * valid domain. |
| 105 */ | 105 */ |
| 106 void _validateTaskExtension(Object extension) { | 106 void _validateTaskExtension(Object extension) { |
| 107 if (extension is! TaskDescriptor) { | 107 if (extension is! TaskDescriptor) { |
| 108 String id = taskExtensionPoint.uniqueIdentifier; | 108 String id = taskExtensionPoint.uniqueIdentifier; |
| 109 throw new ExtensionError('Extensions to $id must be a TaskDescriptor'); | 109 throw new ExtensionError('Extensions to $id must be a TaskDescriptor'); |
| 110 } | 110 } |
| 111 } | 111 } |
| 112 } | 112 } |
| OLD | NEW |