| 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/scanner.dart'; | 10 import 'package:analyzer/src/generated/scanner.dart'; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 /** | 118 /** |
| 119 * The token stream produced while scanning a compilation unit. | 119 * The token stream produced while scanning a compilation unit. |
| 120 * | 120 * |
| 121 * 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 |
| 122 * 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. |
| 123 * | 123 * |
| 124 * 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
. |
| 125 */ | 125 */ |
| 126 final ResultDescriptor<Token> TOKEN_STREAM = | 126 final ResultDescriptor<Token> TOKEN_STREAM = |
| 127 new ResultDescriptor<Token>('TOKEN_STREAM', null); | 127 new ResultDescriptor<Token>('TOKEN_STREAM', null); |
| 128 |
| 129 /** |
| 130 * The sources of the Dart files that a library consists of. |
| 131 * |
| 132 * The list will include the source of the defining unit and [INCLUDED_PARTS]. |
| 133 * So, it is never empty or `null`. |
| 134 * |
| 135 * The result is only available for targets representing a Dart library. |
| 136 */ |
| 137 final ResultDescriptor<List<Source>> UNITS = |
| 138 new ResultDescriptor<List<Source>>('UNITS', Source.EMPTY_ARRAY); |
| OLD | NEW |