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 | 7 import '../errors.dart' show |
8 internalError; | 8 internalError; |
9 | 9 |
10 export 'class_builder.dart' show | 10 export 'class_builder.dart' show |
(...skipping 28 matching lines...) Expand all Loading... |
39 | 39 |
40 export 'mixin_application_builder.dart' show | 40 export 'mixin_application_builder.dart' show |
41 MixinApplicationBuilder; | 41 MixinApplicationBuilder; |
42 | 42 |
43 export 'enum_builder.dart' show | 43 export 'enum_builder.dart' show |
44 EnumBuilder; | 44 EnumBuilder; |
45 | 45 |
46 export 'type_declaration_builder.dart' show | 46 export 'type_declaration_builder.dart' show |
47 TypeDeclarationBuilder; | 47 TypeDeclarationBuilder; |
48 | 48 |
49 export 'interface_type_builder.dart' show | 49 export 'named_type_builder.dart' show |
50 InterfaceTypeBuilder; | 50 NamedTypeBuilder; |
51 | 51 |
52 export 'constructor_reference_builder.dart' show | 52 export 'constructor_reference_builder.dart' show |
53 ConstructorReferenceBuilder; | 53 ConstructorReferenceBuilder; |
54 | 54 |
55 export '../source/unhandled_listener.dart' show | 55 export '../source/unhandled_listener.dart' show |
56 Unhandled; | 56 Unhandled; |
57 | 57 |
58 export 'member_builder.dart' show | 58 export 'member_builder.dart' show |
59 MemberBuilder; | 59 MemberBuilder; |
60 | 60 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 | 169 |
170 static Uri getUri(Builder builder) { | 170 static Uri getUri(Builder builder) { |
171 if (builder == null) return internalError("Builder is null."); | 171 if (builder == null) return internalError("Builder is null."); |
172 while (builder != null) { | 172 while (builder != null) { |
173 if (builder is LibraryBuilder) return builder.uri; | 173 if (builder is LibraryBuilder) return builder.uri; |
174 builder = builder.parent; | 174 builder = builder.parent; |
175 } | 175 } |
176 return internalError("No library parent."); | 176 return internalError("No library parent."); |
177 } | 177 } |
178 } | 178 } |
OLD | NEW |