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.kernel_builder; | 5 library fasta.kernel_builder; |
6 | 6 |
7 export 'kernel_class_builder.dart' show KernelClassBuilder; | 7 export 'kernel_class_builder.dart' show KernelClassBuilder; |
8 | 8 |
9 export 'kernel_enum_builder.dart' show KernelEnumBuilder; | 9 export 'kernel_enum_builder.dart' show KernelEnumBuilder; |
10 | 10 |
11 export 'kernel_field_builder.dart' show KernelFieldBuilder; | 11 export 'kernel_field_builder.dart' show KernelFieldBuilder; |
12 | 12 |
13 export 'kernel_formal_parameter_builder.dart' show KernelFormalParameterBuilder; | 13 export 'kernel_formal_parameter_builder.dart' show KernelFormalParameterBuilder; |
14 | 14 |
15 export 'kernel_function_type_builder.dart' show KernelFunctionTypeBuilder; | 15 export 'kernel_function_type_builder.dart' show KernelFunctionTypeBuilder; |
16 | 16 |
17 export 'kernel_function_type_alias_builder.dart' | 17 export 'kernel_function_type_alias_builder.dart' |
18 show KernelFunctionTypeAliasBuilder; | 18 show KernelFunctionTypeAliasBuilder; |
19 | 19 |
20 export 'kernel_named_type_builder.dart' show KernelNamedTypeBuilder; | 20 export 'kernel_named_type_builder.dart' show KernelNamedTypeBuilder; |
21 | 21 |
22 export 'kernel_library_builder.dart' show KernelLibraryBuilder; | 22 export 'kernel_library_builder.dart' show KernelLibraryBuilder; |
23 | 23 |
24 export 'kernel_mixin_application_builder.dart' | 24 export 'kernel_mixin_application_builder.dart' |
25 show KernelMixinApplicationBuilder; | 25 show KernelMixinApplicationBuilder; |
26 | 26 |
27 export 'kernel_named_mixin_application_builder.dart' | |
28 show KernelNamedMixinApplicationBuilder; | |
29 | |
30 export 'kernel_procedure_builder.dart' | 27 export 'kernel_procedure_builder.dart' |
31 show | 28 show |
32 KernelConstructorBuilder, | 29 KernelConstructorBuilder, |
33 KernelFunctionBuilder, | 30 KernelFunctionBuilder, |
34 KernelProcedureBuilder; | 31 KernelProcedureBuilder; |
35 | 32 |
36 export 'kernel_type_builder.dart' show KernelTypeBuilder; | 33 export 'kernel_type_builder.dart' show KernelTypeBuilder; |
37 | 34 |
38 export 'kernel_type_variable_builder.dart' show KernelTypeVariableBuilder; | 35 export 'kernel_type_variable_builder.dart' show KernelTypeVariableBuilder; |
39 | 36 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 int i = a.fileUri.compareTo(b.fileUri); | 111 int i = a.fileUri.compareTo(b.fileUri); |
115 if (i != 0) return i; | 112 if (i != 0) return i; |
116 return a.fileOffset.compareTo(b.fileOffset); | 113 return a.fileOffset.compareTo(b.fileOffset); |
117 } | 114 } |
118 | 115 |
119 bool isRedirectingGenerativeConstructorImplementation(Constructor constructor) { | 116 bool isRedirectingGenerativeConstructorImplementation(Constructor constructor) { |
120 List<Initializer> initializers = constructor.initializers; | 117 List<Initializer> initializers = constructor.initializers; |
121 return initializers.length == 1 && | 118 return initializers.length == 1 && |
122 initializers.single is RedirectingInitializer; | 119 initializers.single is RedirectingInitializer; |
123 } | 120 } |
OLD | NEW |