| 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.library_builder; | 5 library fasta.library_builder; |
| 6 | 6 |
| 7 import '../combinator.dart' show Combinator; | 7 import '../combinator.dart' show Combinator; |
| 8 | 8 |
| 9 import '../errors.dart' show InputError, internalError, printUnexpected; | 9 import '../errors.dart' show InputError, internalError, printUnexpected; |
| 10 | 10 |
| 11 import '../export.dart' show Export; | 11 import '../export.dart' show Export; |
| 12 | 12 |
| 13 import '../loader.dart' show Loader; | 13 import '../loader.dart' show Loader; |
| 14 | 14 |
| 15 import '../messages.dart' show nit, warning; | 15 import '../messages.dart' show nit, warning; |
| 16 | 16 |
| 17 import '../util/relativize.dart' show relativizeUri; | 17 import '../util/relativize.dart' show relativizeUri; |
| 18 | 18 |
| 19 import 'builder.dart' | 19 import 'builder.dart' |
| 20 show | 20 show |
| 21 Builder, | 21 Builder, |
| 22 DynamicTypeBuilder, | 22 DynamicTypeBuilder, |
| 23 ClassBuilder, | 23 ClassBuilder, |
| 24 Scope, |
| 24 TypeBuilder, | 25 TypeBuilder, |
| 25 VoidTypeBuilder; | 26 VoidTypeBuilder; |
| 26 | 27 |
| 27 import 'scope.dart' show Scope; | |
| 28 | |
| 29 abstract class LibraryBuilder<T extends TypeBuilder, R> extends Builder { | 28 abstract class LibraryBuilder<T extends TypeBuilder, R> extends Builder { |
| 30 final List<Export> exporters = <Export>[]; | 29 final List<Export> exporters = <Export>[]; |
| 31 | 30 |
| 32 final List<InputError> compileTimeErrors = <InputError>[]; | 31 final List<InputError> compileTimeErrors = <InputError>[]; |
| 33 | 32 |
| 34 LibraryBuilder partOfLibrary; | 33 LibraryBuilder partOfLibrary; |
| 35 | 34 |
| 36 Loader get loader; | 35 Loader get loader; |
| 37 | 36 |
| 38 Uri get uri; | 37 Uri get uri; |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 124 } |
| 126 | 125 |
| 127 int finishTypeVariables(ClassBuilder object) => 0; | 126 int finishTypeVariables(ClassBuilder object) => 0; |
| 128 | 127 |
| 129 void becomeCoreLibrary(dynamicType, voidType) { | 128 void becomeCoreLibrary(dynamicType, voidType) { |
| 130 addBuilder("dynamic", | 129 addBuilder("dynamic", |
| 131 new DynamicTypeBuilder<T, dynamic>(dynamicType, this, -1), -1); | 130 new DynamicTypeBuilder<T, dynamic>(dynamicType, this, -1), -1); |
| 132 addBuilder("void", new VoidTypeBuilder<T, dynamic>(voidType, this, -1), -1); | 131 addBuilder("void", new VoidTypeBuilder<T, dynamic>(voidType, this, -1), -1); |
| 133 } | 132 } |
| 134 } | 133 } |
| OLD | NEW |