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_target; | 5 library fasta.kernel_target; |
6 | 6 |
7 import 'dart:async' show Future; | 7 import 'dart:async' show Future; |
8 | 8 |
9 import 'dart:io' show File, IOSink; | 9 import 'dart:io' show File, IOSink; |
10 | 10 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 show InputError, internalError, reportCrash, resetCrashReporting; | 65 show InputError, internalError, reportCrash, resetCrashReporting; |
66 | 66 |
67 import '../util/relativize.dart' show relativizeUri; | 67 import '../util/relativize.dart' show relativizeUri; |
68 | 68 |
69 import '../compiler_context.dart' show CompilerContext; | 69 import '../compiler_context.dart' show CompilerContext; |
70 | 70 |
71 import 'kernel_builder.dart' | 71 import 'kernel_builder.dart' |
72 show | 72 show |
73 Builder, | 73 Builder, |
74 ClassBuilder, | 74 ClassBuilder, |
75 DynamicTypeBuilder, | |
76 InvalidTypeBuilder, | |
77 KernelClassBuilder, | 75 KernelClassBuilder, |
78 KernelLibraryBuilder, | 76 KernelLibraryBuilder, |
79 KernelNamedTypeBuilder, | 77 KernelNamedTypeBuilder, |
80 KernelProcedureBuilder, | 78 KernelProcedureBuilder, |
81 LibraryBuilder, | 79 LibraryBuilder, |
82 MixinApplicationBuilder, | 80 MixinApplicationBuilder, |
83 NamedMixinApplicationBuilder, | 81 NamedMixinApplicationBuilder, |
84 NamedTypeBuilder, | 82 NamedTypeBuilder, |
85 TypeBuilder; | 83 TypeBuilder; |
86 | 84 |
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 } | 602 } |
605 for (Constructor constructor in superclass.constructors) { | 603 for (Constructor constructor in superclass.constructors) { |
606 if (constructor.name.name.isEmpty) { | 604 if (constructor.name.name.isEmpty) { |
607 return constructor.function.requiredParameterCount == 0 | 605 return constructor.function.requiredParameterCount == 0 |
608 ? constructor | 606 ? constructor |
609 : null; | 607 : null; |
610 } | 608 } |
611 } | 609 } |
612 return null; | 610 return null; |
613 } | 611 } |
OLD | NEW |