| 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/dart/ast/ast.dart'; | 7 import 'package:analyzer/dart/ast/ast.dart'; |
| 8 import 'package:analyzer/dart/ast/token.dart'; | 8 import 'package:analyzer/dart/ast/token.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 /** | 78 /** |
| 79 * The fully built [LibraryElement] associated with a library. | 79 * The fully built [LibraryElement] associated with a library. |
| 80 * | 80 * |
| 81 * The result is only available for [Source]s representing a library. | 81 * The result is only available for [Source]s representing a library. |
| 82 */ | 82 */ |
| 83 final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT = | 83 final ResultDescriptor<LibraryElement> LIBRARY_ELEMENT = |
| 84 new ResultDescriptor<LibraryElement>('LIBRARY_ELEMENT', null); | 84 new ResultDescriptor<LibraryElement>('LIBRARY_ELEMENT', null); |
| 85 | 85 |
| 86 /** | 86 /** |
| 87 * The compilation unit AST with resolved [UriBasedDirective]s. | 87 * The compilation unit AST produced while parsing a compilation unit. |
| 88 * |
| 89 * The AST structure will not have resolution information associated with it. |
| 88 * | 90 * |
| 89 * The result is only available for [Source]s representing a compilation unit. | 91 * The result is only available for [Source]s representing a compilation unit. |
| 90 */ | 92 */ |
| 91 final ResultDescriptor<CompilationUnit> PARSED_UNIT = | 93 final ResultDescriptor<CompilationUnit> PARSED_UNIT = |
| 92 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null, | 94 new ResultDescriptor<CompilationUnit>('PARSED_UNIT', null, |
| 93 cachingPolicy: AST_CACHING_POLICY); | 95 cachingPolicy: AST_CACHING_POLICY); |
| 94 | 96 |
| 95 /** | 97 /** |
| 96 * The resolved [CompilationUnit] associated with a compilation unit, with | 98 * The resolved [CompilationUnit] associated with a compilation unit, with |
| 97 * constants resolved. | 99 * constants resolved. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 @override | 175 @override |
| 174 bool operator ==(other) { | 176 bool operator ==(other) { |
| 175 return other is LibrarySpecificUnit && | 177 return other is LibrarySpecificUnit && |
| 176 other.library == library && | 178 other.library == library && |
| 177 other.unit == unit; | 179 other.unit == unit; |
| 178 } | 180 } |
| 179 | 181 |
| 180 @override | 182 @override |
| 181 String toString() => '$unit in $library'; | 183 String toString() => '$unit in $library'; |
| 182 } | 184 } |
| OLD | NEW |