| 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.dill_class_builder; | 5 library fasta.dill_class_builder; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' show | 7 import 'package:kernel/ast.dart' show |
| 8 Class, | 8 Class, |
| 9 Constructor, | 9 Constructor, |
| 10 Member, | 10 Member, |
| 11 Procedure, | 11 Procedure, |
| 12 ProcedureKind; | 12 ProcedureKind; |
| 13 | 13 |
| 14 import '../errors.dart' show | 14 import '../errors.dart' show |
| 15 internalError; | 15 internalError; |
| 16 | 16 |
| 17 import '../kernel/kernel_builder.dart' show | 17 import '../kernel/kernel_builder.dart' show |
| 18 Builder, | 18 Builder, |
| 19 KernelClassBuilder, | 19 KernelClassBuilder, |
| 20 TypeBuilder; | 20 KernelTypeBuilder; |
| 21 | 21 |
| 22 import '../modifier.dart' show | 22 import '../modifier.dart' show |
| 23 abstractMask; | 23 abstractMask; |
| 24 | 24 |
| 25 import 'dill_member_builder.dart' show | 25 import 'dill_member_builder.dart' show |
| 26 DillMemberBuilder; | 26 DillMemberBuilder; |
| 27 | 27 |
| 28 import 'dill_library_builder.dart' show | 28 import 'dill_library_builder.dart' show |
| 29 DillLibraryBuilder; | 29 DillLibraryBuilder; |
| 30 | 30 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 51 } else { | 51 } else { |
| 52 existing.next = builder; | 52 existing.next = builder; |
| 53 } | 53 } |
| 54 } | 54 } |
| 55 } | 55 } |
| 56 | 56 |
| 57 /// Returns true if this class is the result of applying a mixin to its | 57 /// Returns true if this class is the result of applying a mixin to its |
| 58 /// superclass. | 58 /// superclass. |
| 59 bool get isMixinApplication => cls.isMixinApplication; | 59 bool get isMixinApplication => cls.isMixinApplication; |
| 60 | 60 |
| 61 TypeBuilder get mixedInType => internalError("Not implemented."); | 61 KernelTypeBuilder get mixedInType => internalError("Not implemented."); |
| 62 | 62 |
| 63 Builder findConstructorOrFactory(String name) => constructors[name]; | 63 Builder findConstructorOrFactory(String name) => constructors[name]; |
| 64 } | 64 } |
| 65 | 65 |
| 66 int computeModifiers(Class cls) { | 66 int computeModifiers(Class cls) { |
| 67 return cls.isAbstract ? abstractMask : 0; | 67 return cls.isAbstract ? abstractMask : 0; |
| 68 } | 68 } |
| OLD | NEW |