OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.mixed_accessor; | 5 library fasta.mixed_accessor; |
6 | 6 |
7 import 'builder.dart' show Builder, LibraryBuilder; | 7 import 'builder.dart' show Builder, LibraryBuilder; |
8 | 8 |
9 /// Represents the import of a getter and setter from two different libraries. | 9 /// Represents the import of a getter and setter from two different libraries. |
10 class MixedAccessor extends Builder { | 10 class MixedAccessor extends Builder { |
11 final Builder getter; | 11 final Builder getter; |
12 final Builder setter; | 12 final Builder setter; |
13 | 13 |
14 MixedAccessor(this.getter, this.setter, LibraryBuilder parent) | 14 MixedAccessor(this.getter, this.setter, LibraryBuilder parent) |
15 : super( | 15 : super( |
16 parent, | 16 parent, |
17 -1, // Synthetic element has no charOffset. | 17 -1, // Synthetic element has no charOffset. |
18 parent.fileUri) { | 18 parent.fileUri) { |
19 next = getter; | 19 next = getter; |
20 } | 20 } |
| 21 |
| 22 @override |
| 23 String get fullNameForErrors => getter.fullNameForErrors; |
21 } | 24 } |
OLD | NEW |