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

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

Issue 1406583002: Fix type of EninePlugin List<ResultDescriptor> getters. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | no next file » | 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/generated/engine.dart' 8 import 'package:analyzer/src/generated/engine.dart'
9 show InternalAnalysisContext; 9 show InternalAnalysisContext;
10 import 'package:analyzer/src/generated/error.dart' show AnalysisError; 10 import 'package:analyzer/src/generated/error.dart' show AnalysisError;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 /** 93 /**
94 * Initialize a newly created plugin. 94 * Initialize a newly created plugin.
95 */ 95 */
96 EnginePlugin(); 96 EnginePlugin();
97 97
98 /** 98 /**
99 * Return a list containing all of the contributed analysis error result 99 * Return a list containing all of the contributed analysis error result
100 * descriptors for Dart sources. 100 * descriptors for Dart sources.
101 */ 101 */
102 @ExtensionPointId('DART_ERRORS_FOR_SOURCE_EXTENSION_POINT_ID') 102 @ExtensionPointId('DART_ERRORS_FOR_SOURCE_EXTENSION_POINT_ID')
103 List<TaskDescriptor> get dartErrorsForSource => 103 List<ResultDescriptor> get dartErrorsForSource =>
104 dartErrorsForSourceExtensionPoint.extensions; 104 dartErrorsForSourceExtensionPoint.extensions;
105 105
106 /** 106 /**
107 * Return a list containing all of the contributed analysis error result 107 * Return a list containing all of the contributed analysis error result
108 * descriptors for Dart library specific units. 108 * descriptors for Dart library specific units.
109 */ 109 */
110 @ExtensionPointId('DART_ERRORS_FOR_UNIT_EXTENSION_POINT_ID') 110 @ExtensionPointId('DART_ERRORS_FOR_UNIT_EXTENSION_POINT_ID')
111 List<TaskDescriptor> get dartErrorsForUnit => 111 List<ResultDescriptor> get dartErrorsForUnit =>
112 dartErrorsForUnitExtensionPoint.extensions; 112 dartErrorsForUnitExtensionPoint.extensions;
113 113
114 /** 114 /**
115 * Return a list containing all of the contributed analysis error result 115 * Return a list containing all of the contributed analysis error result
116 * descriptors for HTML sources. 116 * descriptors for HTML sources.
117 */ 117 */
118 @ExtensionPointId('HTML_ERRORS_EXTENSION_POINT_ID') 118 @ExtensionPointId('HTML_ERRORS_EXTENSION_POINT_ID')
119 List<TaskDescriptor> get htmlErrors => htmlErrorsExtensionPoint.extensions; 119 List<ResultDescriptor> get htmlErrors => htmlErrorsExtensionPoint.extensions;
120 120
121 /** 121 /**
122 * Return a list containing all of the task descriptors that were contributed. 122 * Return a list containing all of the task descriptors that were contributed.
123 */ 123 */
124 List<TaskDescriptor> get taskDescriptors => taskExtensionPoint.extensions; 124 List<TaskDescriptor> get taskDescriptors => taskExtensionPoint.extensions;
125 125
126 @override 126 @override
127 String get uniqueIdentifier => UNIQUE_IDENTIFIER; 127 String get uniqueIdentifier => UNIQUE_IDENTIFIER;
128 128
129 /** 129 /**
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 * passed to the extension manager to populate it. 278 * passed to the extension manager to populate it.
279 * 279 *
280 * This annotation is not used at runtime; it is used to aid in static analysis 280 * This annotation is not used at runtime; it is used to aid in static analysis
281 * of the task model during development. 281 * of the task model during development.
282 */ 282 */
283 class ExtensionPointId { 283 class ExtensionPointId {
284 final String extensionPointId; 284 final String extensionPointId;
285 285
286 const ExtensionPointId(this.extensionPointId); 286 const ExtensionPointId(this.extensionPointId);
287 } 287 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698