| 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/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 9 import 'package:analyzer/src/generated/error.dart'; | 10 import 'package:analyzer/src/generated/error.dart'; |
| 10 import 'package:analyzer/src/generated/scanner.dart'; | |
| 11 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
| 12 import 'package:analyzer/src/generated/utilities_general.dart'; | 12 import 'package:analyzer/src/generated/utilities_general.dart'; |
| 13 import 'package:analyzer/src/task/dart.dart'; | 13 import 'package:analyzer/src/task/dart.dart'; |
| 14 import 'package:analyzer/task/model.dart'; | 14 import 'package:analyzer/task/model.dart'; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * The analysis errors associated with a [Source] representing a compilation | 17 * The analysis errors associated with a [Source] representing a compilation |
| 18 * unit. | 18 * unit. |
| 19 */ | 19 */ |
| 20 final ListResultDescriptor<AnalysisError> DART_ERRORS = | 20 final ListResultDescriptor<AnalysisError> DART_ERRORS = |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 @override | 172 @override |
| 173 bool operator ==(other) { | 173 bool operator ==(other) { |
| 174 return other is LibrarySpecificUnit && | 174 return other is LibrarySpecificUnit && |
| 175 other.library == library && | 175 other.library == library && |
| 176 other.unit == unit; | 176 other.unit == unit; |
| 177 } | 177 } |
| 178 | 178 |
| 179 @override | 179 @override |
| 180 String toString() => '$unit in $library'; | 180 String toString() => '$unit in $library'; |
| 181 } | 181 } |
| OLD | NEW |