| 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'; | |
| 11 import 'package:analyzer/src/generated/scanner.dart'; | 10 import 'package:analyzer/src/generated/scanner.dart'; |
| 12 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
| 13 import 'package:analyzer/task/model.dart'; | 12 import 'package:analyzer/task/model.dart'; |
| 14 | 13 |
| 15 /** | 14 /** |
| 16 * The element model associated with a single compilation unit. | 15 * The element model associated with a single compilation unit. |
| 17 * | 16 * |
| 18 * The result is only available for targets representing a Dart compilation unit
. | 17 * The result is only available for targets representing a Dart compilation unit
. |
| 19 */ | 18 */ |
| 20 final ResultDescriptor<CompilationUnitElement> COMPILATION_UNIT_ELEMENT = | 19 final ResultDescriptor<CompilationUnitElement> COMPILATION_UNIT_ELEMENT = |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 * The compilation unit AST produced while parsing a compilation unit. | 98 * The compilation unit AST produced while parsing a compilation unit. |
| 100 * | 99 * |
| 101 * The AST structure will not have resolution information associated with it. | 100 * The AST structure will not have resolution information associated with it. |
| 102 * | 101 * |
| 103 * The result is only available for targets representing a Dart compilation unit
. | 102 * The result is only available for targets representing a Dart compilation unit
. |
| 104 */ | 103 */ |
| 105 final ResultDescriptor<CompilationUnit> PARSED_UNIT = | 104 final ResultDescriptor<CompilationUnit> PARSED_UNIT = |
| 106 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null); | 105 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null); |
| 107 | 106 |
| 108 /** | 107 /** |
| 109 * The public [Namespace] of a library. | |
| 110 * | |
| 111 * The result is only available for targets representing a Dart library. | |
| 112 */ | |
| 113 final ResultDescriptor<Namespace> PUBLIC_NAMESPACE = | |
| 114 new ResultDescriptor<Namespace>('PUBLIC_NAMESPACE', null); | |
| 115 | |
| 116 /** | |
| 117 * The errors produced while scanning a compilation unit. | 108 * The errors produced while scanning a compilation unit. |
| 118 * | 109 * |
| 119 * The list will be empty if there were no errors, but will not be `null`. | 110 * The list will be empty if there were no errors, but will not be `null`. |
| 120 * | 111 * |
| 121 * The result is only available for targets representing a Dart compilation unit
. | 112 * The result is only available for targets representing a Dart compilation unit
. |
| 122 */ | 113 */ |
| 123 final ResultDescriptor<List<AnalysisError>> SCAN_ERRORS = | 114 final ResultDescriptor<List<AnalysisError>> SCAN_ERRORS = |
| 124 new ResultDescriptor<List<AnalysisError>>( | 115 new ResultDescriptor<List<AnalysisError>>( |
| 125 'SCAN_ERRORS', AnalysisError.NO_ERRORS, contributesTo: DART_ERRORS); | 116 'SCAN_ERRORS', AnalysisError.NO_ERRORS, contributesTo: DART_ERRORS); |
| 126 | 117 |
| 127 /** | 118 /** |
| 128 * The token stream produced while scanning a compilation unit. | 119 * The token stream produced while scanning a compilation unit. |
| 129 * | 120 * |
| 130 * The value is the first token in the file, or the special end-of-file marker | 121 * The value is the first token in the file, or the special end-of-file marker |
| 131 * at the end of the stream if the file does not contain any tokens. | 122 * at the end of the stream if the file does not contain any tokens. |
| 132 * | 123 * |
| 133 * The result is only available for targets representing a Dart compilation unit
. | 124 * The result is only available for targets representing a Dart compilation unit
. |
| 134 */ | 125 */ |
| 135 final ResultDescriptor<Token> TOKEN_STREAM = | 126 final ResultDescriptor<Token> TOKEN_STREAM = |
| 136 new ResultDescriptor<Token>('TOKEN_STREAM', null); | 127 new ResultDescriptor<Token>('TOKEN_STREAM', null); |
| OLD | NEW |