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

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

Issue 1133703003: Add LIBRARY_ERRORS result. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Replace LIBRARY_ERRORS with the LIBRARY_ERRORS_READY flag. Created 5 years, 7 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') | no next file with comments »
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/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/task/model.dart'; 10 import 'package:analyzer/task/model.dart';
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 registerExtension(taskId, BuildPublicNamespaceTask.DESCRIPTOR); 72 registerExtension(taskId, BuildPublicNamespaceTask.DESCRIPTOR);
73 registerExtension(taskId, BuildSourceClosuresTask.DESCRIPTOR); 73 registerExtension(taskId, BuildSourceClosuresTask.DESCRIPTOR);
74 registerExtension(taskId, BuildTypeProviderTask.DESCRIPTOR); 74 registerExtension(taskId, BuildTypeProviderTask.DESCRIPTOR);
75 registerExtension(taskId, ComputeConstantDependenciesTask.DESCRIPTOR); 75 registerExtension(taskId, ComputeConstantDependenciesTask.DESCRIPTOR);
76 registerExtension(taskId, ComputeConstantValueTask.DESCRIPTOR); 76 registerExtension(taskId, ComputeConstantValueTask.DESCRIPTOR);
77 registerExtension(taskId, ContainingLibrariesTask.DESCRIPTOR); 77 registerExtension(taskId, ContainingLibrariesTask.DESCRIPTOR);
78 registerExtension(taskId, DartErrorsTask.DESCRIPTOR); 78 registerExtension(taskId, DartErrorsTask.DESCRIPTOR);
79 registerExtension(taskId, GatherUsedImportedElementsTask.DESCRIPTOR); 79 registerExtension(taskId, GatherUsedImportedElementsTask.DESCRIPTOR);
80 registerExtension(taskId, GatherUsedLocalElementsTask.DESCRIPTOR); 80 registerExtension(taskId, GatherUsedLocalElementsTask.DESCRIPTOR);
81 registerExtension(taskId, GenerateHintsTask.DESCRIPTOR); 81 registerExtension(taskId, GenerateHintsTask.DESCRIPTOR);
82 registerExtension(taskId, LibraryErrorsReadyTask.DESCRIPTOR);
82 registerExtension(taskId, LibraryUnitErrorsTask.DESCRIPTOR); 83 registerExtension(taskId, LibraryUnitErrorsTask.DESCRIPTOR);
83 registerExtension(taskId, ParseDartTask.DESCRIPTOR); 84 registerExtension(taskId, ParseDartTask.DESCRIPTOR);
84 registerExtension(taskId, ResolveLibraryTypeNamesTask.DESCRIPTOR); 85 registerExtension(taskId, ResolveLibraryTypeNamesTask.DESCRIPTOR);
85 registerExtension(taskId, ResolveReferencesTask.DESCRIPTOR); 86 registerExtension(taskId, ResolveReferencesTask.DESCRIPTOR);
86 registerExtension(taskId, ResolveUnitTypeNamesTask.DESCRIPTOR); 87 registerExtension(taskId, ResolveUnitTypeNamesTask.DESCRIPTOR);
87 registerExtension(taskId, ResolveVariableReferencesTask.DESCRIPTOR); 88 registerExtension(taskId, ResolveVariableReferencesTask.DESCRIPTOR);
88 registerExtension(taskId, ScanDartTask.DESCRIPTOR); 89 registerExtension(taskId, ScanDartTask.DESCRIPTOR);
89 registerExtension(taskId, VerifyUnitTask.DESCRIPTOR); 90 registerExtension(taskId, VerifyUnitTask.DESCRIPTOR);
90 // 91 //
91 // Register HTML tasks. 92 // Register HTML tasks.
92 // 93 //
93 } 94 }
94 95
95 /** 96 /**
96 * 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
97 * valid domain. 98 * valid domain.
98 */ 99 */
99 void _validateTaskExtension(Object extension) { 100 void _validateTaskExtension(Object extension) {
100 if (extension is! TaskDescriptor) { 101 if (extension is! TaskDescriptor) {
101 String id = taskExtensionPoint.uniqueIdentifier; 102 String id = taskExtensionPoint.uniqueIdentifier;
102 throw new ExtensionError('Extensions to $id must be a TaskDescriptor'); 103 throw new ExtensionError('Extensions to $id must be a TaskDescriptor');
103 } 104 }
104 } 105 }
105 } 106 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698