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.builder; | 5 library fasta.builder; |
6 | 6 |
7 import '../errors.dart' show internalError; | 7 import '../errors.dart' show internalError; |
8 | 8 |
9 import '../messages.dart' show nit; | 9 import '../messages.dart' show nit; |
10 | 10 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 bool get isConstructor => false; | 161 bool get isConstructor => false; |
162 | 162 |
163 bool get isFactory => false; | 163 bool get isFactory => false; |
164 | 164 |
165 bool get isLocal => false; | 165 bool get isLocal => false; |
166 | 166 |
167 get target => internalError("Unsupported operation $runtimeType."); | 167 get target => internalError("Unsupported operation $runtimeType."); |
168 | 168 |
169 bool get hasProblem => false; | 169 bool get hasProblem => false; |
170 | 170 |
| 171 String get fullNameForErrors; |
| 172 |
171 static Uri getUri(Builder builder) { | 173 static Uri getUri(Builder builder) { |
172 if (builder == null) return internalError("Builder is null."); | 174 if (builder == null) return internalError("Builder is null."); |
173 while (builder != null) { | 175 while (builder != null) { |
174 if (builder is LibraryBuilder) return builder.uri; | 176 if (builder is LibraryBuilder) return builder.uri; |
175 builder = builder.parent; | 177 builder = builder.parent; |
176 } | 178 } |
177 return internalError("No library parent."); | 179 return internalError("No library parent."); |
178 } | 180 } |
179 } | 181 } |
OLD | NEW |