| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 /** | 122 /** |
| 123 * The token stream produced while scanning a compilation unit. | 123 * The token stream produced while scanning a compilation unit. |
| 124 * | 124 * |
| 125 * The value is the first token in the file, or the special end-of-file marker | 125 * The value is the first token in the file, or the special end-of-file marker |
| 126 * at the end of the stream if the file does not contain any tokens. | 126 * at the end of the stream if the file does not contain any tokens. |
| 127 * | 127 * |
| 128 * The result is only available for [Source]s representing a compilation unit. | 128 * The result is only available for [Source]s representing a compilation unit. |
| 129 */ | 129 */ |
| 130 final ResultDescriptor<Token> TOKEN_STREAM = new ResultDescriptor<Token>( | 130 final ResultDescriptor<Token> TOKEN_STREAM = new ResultDescriptor<Token>( |
| 131 'TOKEN_STREAM', null, cachingPolicy: TOKEN_STREAM_CACHING_POLICY); | 131 'TOKEN_STREAM', null, |
| 132 cachingPolicy: TOKEN_STREAM_CACHING_POLICY); |
| 132 | 133 |
| 133 /** | 134 /** |
| 134 * The sources of the Dart files that a library consists of. | 135 * The sources of the Dart files that a library consists of. |
| 135 * | 136 * |
| 136 * The list will include the source of the defining unit and [INCLUDED_PARTS]. | 137 * The list will include the source of the defining unit and [INCLUDED_PARTS]. |
| 137 * So, it is never empty or `null`. | 138 * So, it is never empty or `null`. |
| 138 * | 139 * |
| 139 * The result is only available for [Source]s representing a library. | 140 * The result is only available for [Source]s representing a library. |
| 140 */ | 141 */ |
| 141 final ListResultDescriptor<Source> UNITS = | 142 final ListResultDescriptor<Source> UNITS = |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 @override | 178 @override |
| 178 bool operator ==(other) { | 179 bool operator ==(other) { |
| 179 return other is LibrarySpecificUnit && | 180 return other is LibrarySpecificUnit && |
| 180 other.library == library && | 181 other.library == library && |
| 181 other.unit == unit; | 182 other.unit == unit; |
| 182 } | 183 } |
| 183 | 184 |
| 184 @override | 185 @override |
| 185 String toString() => '$unit in $library'; | 186 String toString() => '$unit in $library'; |
| 186 } | 187 } |
| OLD | NEW |