| OLD | NEW |
| 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/resolver.dart'; |
| 10 import 'package:analyzer/src/generated/scanner.dart'; | 11 import 'package:analyzer/src/generated/scanner.dart'; |
| 11 import 'package:analyzer/src/generated/source.dart'; | 12 import 'package:analyzer/src/generated/source.dart'; |
| 12 import 'package:analyzer/task/general.dart'; | 13 import 'package:analyzer/task/general.dart'; |
| 13 import 'package:analyzer/task/model.dart'; | 14 import 'package:analyzer/task/model.dart'; |
| 14 | 15 |
| 15 /** | 16 /** |
| 16 * The errors produced while builing a library element. | 17 * The errors produced while builing a library element. |
| 17 * | 18 * |
| 18 * The list will be empty if there were no errors, but will not be `null`. | 19 * The list will be empty if there were no errors, but will not be `null`. |
| 19 * | 20 * |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 * The compilation unit AST produced while parsing a compilation unit. | 121 * The compilation unit AST produced while parsing a compilation unit. |
| 121 * | 122 * |
| 122 * The AST structure will not have resolution information associated with it. | 123 * The AST structure will not have resolution information associated with it. |
| 123 * | 124 * |
| 124 * The result is only available for targets representing a Dart compilation unit
. | 125 * The result is only available for targets representing a Dart compilation unit
. |
| 125 */ | 126 */ |
| 126 final ResultDescriptor<CompilationUnit> PARSED_UNIT = | 127 final ResultDescriptor<CompilationUnit> PARSED_UNIT = |
| 127 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null); | 128 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null); |
| 128 | 129 |
| 129 /** | 130 /** |
| 131 * The public [Namespace] of a library. |
| 132 * |
| 133 * The result is only available for targets representing a Dart library. |
| 134 */ |
| 135 final ResultDescriptor<Namespace> PUBLIC_NAMESPACE = |
| 136 new ResultDescriptor<Namespace>('PUBLIC_NAMESPACE', null); |
| 137 |
| 138 /** |
| 130 * The errors produced while scanning a compilation unit. | 139 * The errors produced while scanning a compilation unit. |
| 131 * | 140 * |
| 132 * The list will be empty if there were no errors, but will not be `null`. | 141 * The list will be empty if there were no errors, but will not be `null`. |
| 133 * | 142 * |
| 134 * The result is only available for targets representing a Dart compilation unit
. | 143 * The result is only available for targets representing a Dart compilation unit
. |
| 135 */ | 144 */ |
| 136 final ResultDescriptor<List<AnalysisError>> SCAN_ERRORS = | 145 final ResultDescriptor<List<AnalysisError>> SCAN_ERRORS = |
| 137 new ResultDescriptor<List<AnalysisError>>( | 146 new ResultDescriptor<List<AnalysisError>>( |
| 138 'SCAN_ERRORS', AnalysisError.NO_ERRORS, contributesTo: ANALYSIS_ERRORS); | 147 'SCAN_ERRORS', AnalysisError.NO_ERRORS, contributesTo: ANALYSIS_ERRORS); |
| 139 | 148 |
| 140 /** | 149 /** |
| 141 * The token stream produced while scanning a compilation unit. | 150 * The token stream produced while scanning a compilation unit. |
| 142 * | 151 * |
| 143 * The value is the first token in the file, or the special end-of-file marker | 152 * The value is the first token in the file, or the special end-of-file marker |
| 144 * at the end of the stream if the file does not contain any tokens. | 153 * at the end of the stream if the file does not contain any tokens. |
| 145 * | 154 * |
| 146 * The result is only available for targets representing a Dart compilation unit
. | 155 * The result is only available for targets representing a Dart compilation unit
. |
| 147 */ | 156 */ |
| 148 final ResultDescriptor<Token> TOKEN_STREAM = | 157 final ResultDescriptor<Token> TOKEN_STREAM = |
| 149 new ResultDescriptor<Token>('TOKEN_STREAM', null); | 158 new ResultDescriptor<Token>('TOKEN_STREAM', null); |
| OLD | NEW |