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

Side by Side Diff: pkg/analyzer/lib/src/plugin/engine_plugin.dart

Issue 1215053003: Compute mixin application constructors in the ClassElement.constructors getter. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 months 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
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 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 @override 55 @override
56 void registerExtensions(RegisterExtension registerExtension) { 56 void registerExtensions(RegisterExtension registerExtension) {
57 String taskId = TASK_EXTENSION_POINT_ID; 57 String taskId = TASK_EXTENSION_POINT_ID;
58 // 58 //
59 // Register general tasks. 59 // Register general tasks.
60 // 60 //
61 registerExtension(taskId, GetContentTask.DESCRIPTOR); 61 registerExtension(taskId, GetContentTask.DESCRIPTOR);
62 // 62 //
63 // Register Dart tasks. 63 // Register Dart tasks.
64 // 64 //
65 registerExtension(taskId, BuildClassConstructorsTask.DESCRIPTOR);
66 registerExtension(taskId, BuildCompilationUnitElementTask.DESCRIPTOR); 65 registerExtension(taskId, BuildCompilationUnitElementTask.DESCRIPTOR);
67 registerExtension(taskId, BuildDirectiveElementsTask.DESCRIPTOR); 66 registerExtension(taskId, BuildDirectiveElementsTask.DESCRIPTOR);
68 registerExtension(taskId, BuildEnumMemberElementsTask.DESCRIPTOR); 67 registerExtension(taskId, BuildEnumMemberElementsTask.DESCRIPTOR);
69 registerExtension(taskId, BuildExportNamespaceTask.DESCRIPTOR); 68 registerExtension(taskId, BuildExportNamespaceTask.DESCRIPTOR);
70 registerExtension(taskId, BuildLibraryConstructorsTask.DESCRIPTOR);
71 registerExtension(taskId, BuildLibraryElementTask.DESCRIPTOR); 69 registerExtension(taskId, BuildLibraryElementTask.DESCRIPTOR);
72 registerExtension(taskId, BuildPublicNamespaceTask.DESCRIPTOR); 70 registerExtension(taskId, BuildPublicNamespaceTask.DESCRIPTOR);
73 registerExtension(taskId, BuildSourceExportClosureTask.DESCRIPTOR); 71 registerExtension(taskId, BuildSourceExportClosureTask.DESCRIPTOR);
74 registerExtension(taskId, BuildSourceImportExportClosureTask.DESCRIPTOR); 72 registerExtension(taskId, BuildSourceImportExportClosureTask.DESCRIPTOR);
75 registerExtension(taskId, BuildTypeProviderTask.DESCRIPTOR); 73 registerExtension(taskId, BuildTypeProviderTask.DESCRIPTOR);
76 registerExtension(taskId, ComputeConstantDependenciesTask.DESCRIPTOR); 74 registerExtension(taskId, ComputeConstantDependenciesTask.DESCRIPTOR);
77 registerExtension(taskId, ComputeConstantValueTask.DESCRIPTOR); 75 registerExtension(taskId, ComputeConstantValueTask.DESCRIPTOR);
78 registerExtension(taskId, ContainingLibrariesTask.DESCRIPTOR); 76 registerExtension(taskId, ContainingLibrariesTask.DESCRIPTOR);
79 registerExtension(taskId, DartErrorsTask.DESCRIPTOR); 77 registerExtension(taskId, DartErrorsTask.DESCRIPTOR);
80 registerExtension(taskId, EvaluateUnitConstantsTask.DESCRIPTOR); 78 registerExtension(taskId, EvaluateUnitConstantsTask.DESCRIPTOR);
(...skipping 22 matching lines...) Expand all
103 * Validate the given extension by throwing an [ExtensionError] if it is not a 101 * Validate the given extension by throwing an [ExtensionError] if it is not a
104 * valid domain. 102 * valid domain.
105 */ 103 */
106 void _validateTaskExtension(Object extension) { 104 void _validateTaskExtension(Object extension) {
107 if (extension is! TaskDescriptor) { 105 if (extension is! TaskDescriptor) {
108 String id = taskExtensionPoint.uniqueIdentifier; 106 String id = taskExtensionPoint.uniqueIdentifier;
109 throw new ExtensionError('Extensions to $id must be a TaskDescriptor'); 107 throw new ExtensionError('Extensions to $id must be a TaskDescriptor');
110 } 108 }
111 } 109 }
112 } 110 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/generated/testing/test_type_provider.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698