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

Side by Side Diff: pkg/analyzer/lib/src/task/dart.dart

Issue 1012993002: Rename ContributionPoint and error result (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
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.task.dart; 5 library analyzer.src.task.dart;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/src/generated/ast.dart'; 9 import 'package:analyzer/src/generated/ast.dart';
10 import 'package:analyzer/src/generated/element.dart'; 10 import 'package:analyzer/src/generated/element.dart';
(...skipping 15 matching lines...) Expand all
26 /** 26 /**
27 * The errors produced while resolving a library directives. 27 * The errors produced while resolving a library directives.
28 * 28 *
29 * The list will be empty if there were no errors, but will not be `null`. 29 * The list will be empty if there were no errors, but will not be `null`.
30 * 30 *
31 * The result is only available for targets representing a Dart library. 31 * The result is only available for targets representing a Dart library.
32 */ 32 */
33 final ResultDescriptor<List<AnalysisError>> BUILD_DIRECTIVES_ERRORS = 33 final ResultDescriptor<List<AnalysisError>> BUILD_DIRECTIVES_ERRORS =
34 new ResultDescriptor<List<AnalysisError>>( 34 new ResultDescriptor<List<AnalysisError>>(
35 'BUILD_DIRECTIVES_ERRORS', AnalysisError.NO_ERRORS, 35 'BUILD_DIRECTIVES_ERRORS', AnalysisError.NO_ERRORS,
36 contributesTo: ANALYSIS_ERRORS); 36 contributesTo: DART_ERRORS);
37 37
38 /** 38 /**
39 * The errors produced while builing a library element. 39 * The errors produced while builing a library element.
40 * 40 *
41 * The list will be empty if there were no errors, but will not be `null`. 41 * The list will be empty if there were no errors, but will not be `null`.
42 * 42 *
43 * The result is only available for targets representing a Dart library. 43 * The result is only available for targets representing a Dart library.
44 */ 44 */
45 final ResultDescriptor<List<AnalysisError>> BUILD_LIBRARY_ERRORS = 45 final ResultDescriptor<List<AnalysisError>> BUILD_LIBRARY_ERRORS =
46 new ResultDescriptor<List<AnalysisError>>( 46 new ResultDescriptor<List<AnalysisError>>(
47 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS, 47 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS,
48 contributesTo: ANALYSIS_ERRORS); 48 contributesTo: DART_ERRORS);
49 49
50 /** 50 /**
51 * The partial [LibraryElement] associated with a library. 51 * The partial [LibraryElement] associated with a library.
52 * 52 *
53 * The [LibraryElement] and its [CompilationUnitElement]s are attached to each 53 * The [LibraryElement] and its [CompilationUnitElement]s are attached to each
54 * other. Directives 'library', 'part' and 'part of' are resolved. 54 * other. Directives 'library', 'part' and 'part of' are resolved.
55 * 55 *
56 * The result is only available for targets representing a Dart library. 56 * The result is only available for targets representing a Dart library.
57 */ 57 */
58 final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT1 = 58 final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT1 =
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after
1093 } 1093 }
1094 1094
1095 /** 1095 /**
1096 * Create a [ScanDartTask] based on the given [target] in the given [context]. 1096 * Create a [ScanDartTask] based on the given [target] in the given [context].
1097 */ 1097 */
1098 static ScanDartTask createTask( 1098 static ScanDartTask createTask(
1099 AnalysisContext context, AnalysisTarget target) { 1099 AnalysisContext context, AnalysisTarget target) {
1100 return new ScanDartTask(context, target); 1100 return new ScanDartTask(context, target);
1101 } 1101 }
1102 } 1102 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/task/model.dart » ('j') | pkg/analyzer/lib/src/task/model.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698