| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 @override | 155 @override |
| 156 Source get source => unit; | 156 Source get source => unit; |
| 157 | 157 |
| 158 @override | 158 @override |
| 159 bool operator ==(other) { | 159 bool operator ==(other) { |
| 160 return other is LibrarySpecificUnit && | 160 return other is LibrarySpecificUnit && |
| 161 other.library == library && | 161 other.library == library && |
| 162 other.unit == unit; | 162 other.unit == unit; |
| 163 } | 163 } |
| 164 |
| 165 @override |
| 166 String toString() => '$unit in $library'; |
| 164 } | 167 } |
| OLD | NEW |