| 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 export 'class_builder.dart' show ClassBuilder; | 9 export 'class_builder.dart' show ClassBuilder; |
| 10 | 10 |
| 11 export 'field_builder.dart' show FieldBuilder; | 11 export 'field_builder.dart' show FieldBuilder; |
| 12 | 12 |
| 13 export 'library_builder.dart' show LibraryBuilder; | 13 export 'library_builder.dart' show LibraryBuilder; |
| 14 | 14 |
| 15 export 'procedure_builder.dart' show ProcedureBuilder; | 15 export 'procedure_builder.dart' show ProcedureBuilder; |
| 16 | 16 |
| 17 export 'type_builder.dart' show TypeBuilder; | 17 export 'type_builder.dart' show TypeBuilder; |
| 18 | 18 |
| 19 export 'formal_parameter_builder.dart' show FormalParameterBuilder; | 19 export 'formal_parameter_builder.dart' show FormalParameterBuilder; |
| 20 | 20 |
| 21 export 'metadata_builder.dart' show MetadataBuilder; | 21 export 'metadata_builder.dart' show MetadataBuilder; |
| 22 | 22 |
| 23 export 'type_variable_builder.dart' show TypeVariableBuilder; | 23 export 'type_variable_builder.dart' show TypeVariableBuilder; |
| 24 | 24 |
| 25 export 'function_type_alias_builder.dart' show FunctionTypeAliasBuilder; | 25 export 'function_type_alias_builder.dart' show FunctionTypeAliasBuilder; |
| 26 | 26 |
| 27 export 'named_mixin_application_builder.dart' show NamedMixinApplicationBuilder; | |
| 28 | |
| 29 export 'mixin_application_builder.dart' show MixinApplicationBuilder; | 27 export 'mixin_application_builder.dart' show MixinApplicationBuilder; |
| 30 | 28 |
| 31 export 'enum_builder.dart' show EnumBuilder; | 29 export 'enum_builder.dart' show EnumBuilder; |
| 32 | 30 |
| 33 export 'type_declaration_builder.dart' show TypeDeclarationBuilder; | 31 export 'type_declaration_builder.dart' show TypeDeclarationBuilder; |
| 34 | 32 |
| 35 export 'named_type_builder.dart' show NamedTypeBuilder; | 33 export 'named_type_builder.dart' show NamedTypeBuilder; |
| 36 | 34 |
| 37 export 'constructor_reference_builder.dart' show ConstructorReferenceBuilder; | 35 export 'constructor_reference_builder.dart' show ConstructorReferenceBuilder; |
| 38 | 36 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 bool get isTypeVariable => false; | 115 bool get isTypeVariable => false; |
| 118 | 116 |
| 119 bool get isConstructor => false; | 117 bool get isConstructor => false; |
| 120 | 118 |
| 121 bool get isFactory => false; | 119 bool get isFactory => false; |
| 122 | 120 |
| 123 bool get isLocal => false; | 121 bool get isLocal => false; |
| 124 | 122 |
| 125 bool get isConst => false; | 123 bool get isConst => false; |
| 126 | 124 |
| 125 bool get isSynthetic => false; |
| 126 |
| 127 get target => internalError("Unsupported operation $runtimeType."); | 127 get target => internalError("Unsupported operation $runtimeType."); |
| 128 | 128 |
| 129 bool get hasProblem => false; | 129 bool get hasProblem => false; |
| 130 | 130 |
| 131 String get fullNameForErrors; | 131 String get fullNameForErrors; |
| 132 | 132 |
| 133 Uri computeLibraryUri() { | 133 Uri computeLibraryUri() { |
| 134 Builder builder = this; | 134 Builder builder = this; |
| 135 do { | 135 do { |
| 136 if (builder is LibraryBuilder) return builder.uri; | 136 if (builder is LibraryBuilder) return builder.uri; |
| 137 builder = builder.parent; | 137 builder = builder.parent; |
| 138 } while (builder != null); | 138 } while (builder != null); |
| 139 return internalError("No library parent."); | 139 return internalError("No library parent."); |
| 140 } | 140 } |
| 141 | 141 |
| 142 void prepareInitializerInference( | 142 void prepareInitializerInference( |
| 143 SourceLibraryBuilder library, ClassBuilder currentClass) {} | 143 SourceLibraryBuilder library, ClassBuilder currentClass) {} |
| 144 } | 144 } |
| OLD | NEW |