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

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

Issue 1024973002: ResolveLibraryTypeNamesTask to force type name resolution in parts. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/plugin.dart'; 7 import 'package:analyzer/plugin/plugin.dart';
8 import 'package:analyzer/plugin/task.dart'; 8 import 'package:analyzer/plugin/task.dart';
9 import 'package:analyzer/src/task/dart.dart'; 9 import 'package:analyzer/src/task/dart.dart';
10 import 'package:analyzer/src/task/general.dart'; 10 import 'package:analyzer/src/task/general.dart';
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 registerExtension(taskId, BuildCompilationUnitElementTask.DESCRIPTOR); 66 registerExtension(taskId, BuildCompilationUnitElementTask.DESCRIPTOR);
67 registerExtension(taskId, BuildDirectiveElementsTask.DESCRIPTOR); 67 registerExtension(taskId, BuildDirectiveElementsTask.DESCRIPTOR);
68 registerExtension(taskId, BuildEnumMemberElementsTask.DESCRIPTOR); 68 registerExtension(taskId, BuildEnumMemberElementsTask.DESCRIPTOR);
69 registerExtension(taskId, BuildExportNamespaceTask.DESCRIPTOR); 69 registerExtension(taskId, BuildExportNamespaceTask.DESCRIPTOR);
70 registerExtension(taskId, BuildExportSourceClosureTask.DESCRIPTOR); 70 registerExtension(taskId, BuildExportSourceClosureTask.DESCRIPTOR);
71 registerExtension(taskId, BuildFunctionTypeAliasesTask.DESCRIPTOR); 71 registerExtension(taskId, BuildFunctionTypeAliasesTask.DESCRIPTOR);
72 registerExtension(taskId, BuildLibraryElementTask.DESCRIPTOR); 72 registerExtension(taskId, BuildLibraryElementTask.DESCRIPTOR);
73 registerExtension(taskId, BuildPublicNamespaceTask.DESCRIPTOR); 73 registerExtension(taskId, BuildPublicNamespaceTask.DESCRIPTOR);
74 registerExtension(taskId, BuildTypeProviderTask.DESCRIPTOR); 74 registerExtension(taskId, BuildTypeProviderTask.DESCRIPTOR);
75 registerExtension(taskId, ParseDartTask.DESCRIPTOR); 75 registerExtension(taskId, ParseDartTask.DESCRIPTOR);
76 registerExtension(taskId, ResolveTypeNamesTask.DESCRIPTOR); 76 registerExtension(taskId, ResolveLibraryTypeNamesTask.DESCRIPTOR);
77 registerExtension(taskId, ResolveUnitTypeNamesTask.DESCRIPTOR);
77 registerExtension(taskId, ScanDartTask.DESCRIPTOR); 78 registerExtension(taskId, ScanDartTask.DESCRIPTOR);
78 // 79 //
79 // Register HTML tasks. 80 // Register HTML tasks.
80 // 81 //
81 } 82 }
82 83
83 /** 84 /**
84 * Validate the given extension by throwing an [ExtensionError] if it is not a 85 * Validate the given extension by throwing an [ExtensionError] if it is not a
85 * valid domain. 86 * valid domain.
86 */ 87 */
87 void _validateTaskExtension(Object extension) { 88 void _validateTaskExtension(Object extension) {
88 if (extension is! TaskDescriptor) { 89 if (extension is! TaskDescriptor) {
89 String id = taskExtensionPoint.uniqueIdentifier; 90 String id = taskExtensionPoint.uniqueIdentifier;
90 throw new ExtensionError('Extensions to $id must be a TaskDescriptor'); 91 throw new ExtensionError('Extensions to $id must be a TaskDescriptor');
91 } 92 }
92 } 93 }
93 } 94 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | pkg/analyzer/lib/src/task/dart.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698