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

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

Issue 1034423002: Make some results private (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « pkg/analyzer/lib/src/task/dart.dart ('k') | 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.task.dart; 5 library analyzer.task.dart;
6 6
7 import 'package:analyzer/src/generated/ast.dart'; 7 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/error.dart'; 9 import 'package:analyzer/src/generated/error.dart';
10 import 'package:analyzer/src/generated/scanner.dart'; 10 import 'package:analyzer/src/generated/scanner.dart';
11 import 'package:analyzer/src/generated/source.dart'; 11 import 'package:analyzer/src/generated/source.dart';
12 import 'package:analyzer/task/model.dart'; 12 import 'package:analyzer/task/model.dart';
13 13
14 /** 14 /**
15 * The element model associated with a single compilation unit.
16 *
17 * The result is only available for targets representing a Dart compilation unit .
18 */
19 final ResultDescriptor<CompilationUnitElement> COMPILATION_UNIT_ELEMENT =
20 new ResultDescriptor<CompilationUnitElement>(
21 'COMPILATION_UNIT_ELEMENT', null);
22
23 /**
24 * The analysis errors associated with a target. 15 * The analysis errors associated with a target.
25 * 16 *
26 * The value combines errors represented by multiple other results. 17 * The value combines errors represented by multiple other results.
27 */ 18 */
28 // TODO(brianwilkerson) If we want to associate errors with targets smaller than 19 // TODO(brianwilkerson) If we want to associate errors with targets smaller than
29 // a file, we will need other contribution points to collect them. In which case 20 // a file, we will need other contribution points to collect them. In which case
30 // we might want to rename this and/or document that it applies to files. 21 // we might want to rename this and/or document that it applies to files.
31 final CompositeResultDescriptor<List<AnalysisError>> DART_ERRORS = 22 final CompositeResultDescriptor<List<AnalysisError>> DART_ERRORS =
32 new CompositeResultDescriptor<List<AnalysisError>>('DART_ERRORS'); 23 new CompositeResultDescriptor<List<AnalysisError>>('DART_ERRORS');
33 24
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 66
76 /** 67 /**
77 * A flag specifying whether a library is launchable. 68 * A flag specifying whether a library is launchable.
78 * 69 *
79 * The result is only available for targets representing a Dart library. 70 * The result is only available for targets representing a Dart library.
80 */ 71 */
81 final ResultDescriptor<bool> IS_LAUNCHABLE = 72 final ResultDescriptor<bool> IS_LAUNCHABLE =
82 new ResultDescriptor<bool>('IS_LAUNCHABLE', false); 73 new ResultDescriptor<bool>('IS_LAUNCHABLE', false);
83 74
84 /** 75 /**
85 * The errors produced while parsing a compilation unit.
86 *
87 * The list will be empty if there were no errors, but will not be `null`.
88 *
89 * The result is only available for targets representing a Dart compilation unit .
90 */
91 final ResultDescriptor<List<AnalysisError>> PARSE_ERRORS =
92 new ResultDescriptor<List<AnalysisError>>(
93 'PARSE_ERRORS', AnalysisError.NO_ERRORS, contributesTo: DART_ERRORS);
94
95 /**
96 * The compilation unit AST produced while parsing a compilation unit. 76 * The compilation unit AST produced while parsing a compilation unit.
97 * 77 *
98 * The AST structure will not have resolution information associated with it. 78 * The AST structure will not have resolution information associated with it.
99 * 79 *
100 * The result is only available for targets representing a Dart compilation unit . 80 * The result is only available for targets representing a Dart compilation unit .
101 */ 81 */
102 final ResultDescriptor<CompilationUnit> PARSED_UNIT = 82 final ResultDescriptor<CompilationUnit> PARSED_UNIT =
103 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null); 83 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null);
104 84
105 /** 85 /**
106 * The resolved [CompilationUnit] associated with a unit. 86 * The resolved [CompilationUnit] associated with a unit.
107 * 87 *
108 * The result is only available for targets representing a unit. 88 * The result is only available for targets representing a unit.
109 */ 89 */
110 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT = 90 final ResultDescriptor<CompilationUnit> RESOLVED_UNIT =
111 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null); 91 new ResultDescriptor<CompilationUnit>('RESOLVED_UNIT', null);
112 92
113 /** 93 /**
114 * The errors produced while scanning a compilation unit.
115 *
116 * The list will be empty if there were no errors, but will not be `null`.
117 *
118 * The result is only available for targets representing a Dart compilation unit .
119 */
120 final ResultDescriptor<List<AnalysisError>> SCAN_ERRORS =
121 new ResultDescriptor<List<AnalysisError>>(
122 'SCAN_ERRORS', AnalysisError.NO_ERRORS, contributesTo: DART_ERRORS);
123
124 /**
125 * The token stream produced while scanning a compilation unit. 94 * The token stream produced while scanning a compilation unit.
126 * 95 *
127 * The value is the first token in the file, or the special end-of-file marker 96 * The value is the first token in the file, or the special end-of-file marker
128 * at the end of the stream if the file does not contain any tokens. 97 * at the end of the stream if the file does not contain any tokens.
129 * 98 *
130 * The result is only available for targets representing a Dart compilation unit . 99 * The result is only available for targets representing a Dart compilation unit .
131 */ 100 */
132 final ResultDescriptor<Token> TOKEN_STREAM = 101 final ResultDescriptor<Token> TOKEN_STREAM =
133 new ResultDescriptor<Token>('TOKEN_STREAM', null); 102 new ResultDescriptor<Token>('TOKEN_STREAM', null);
134 103
135 /** 104 /**
136 * The sources of the Dart files that a library consists of. 105 * The sources of the Dart files that a library consists of.
137 * 106 *
138 * The list will include the source of the defining unit and [INCLUDED_PARTS]. 107 * The list will include the source of the defining unit and [INCLUDED_PARTS].
139 * So, it is never empty or `null`. 108 * So, it is never empty or `null`.
140 * 109 *
141 * The result is only available for targets representing a Dart library. 110 * The result is only available for targets representing a Dart library.
142 */ 111 */
143 final ListResultDescriptor<Source> UNITS = 112 final ListResultDescriptor<Source> UNITS =
144 new ListResultDescriptor<Source>('UNITS', Source.EMPTY_ARRAY); 113 new ListResultDescriptor<Source>('UNITS', Source.EMPTY_ARRAY);
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/task/dart.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698