| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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_function_type_builder; | 5 library fasta.kernel_function_type_builder; |
| 6 | 6 |
| 7 import 'package:kernel/ast.dart' | 7 import 'package:kernel/ast.dart' |
| 8 show | 8 show |
| 9 DartType, | 9 DartType, |
| 10 DynamicType, | 10 DynamicType, |
| 11 FunctionType, | 11 FunctionType, |
| 12 NamedType, | 12 NamedType, |
| 13 Supertype, | 13 Supertype, |
| 14 TypeParameter; | 14 TypeParameter; |
| 15 | 15 |
| 16 import '../fasta_codes.dart' show messageSupertypeIsFunction; | 16 import '../fasta_codes.dart' show messageSupertypeIsFunction; |
| 17 | |
| 18 import 'kernel_builder.dart' | 17 import 'kernel_builder.dart' |
| 19 show | 18 show |
| 20 FormalParameterBuilder, | 19 FormalParameterBuilder, |
| 21 FunctionTypeBuilder, | 20 FunctionTypeBuilder, |
| 22 KernelFormalParameterBuilder, | 21 KernelFormalParameterBuilder, |
| 23 KernelTypeBuilder, | 22 KernelTypeBuilder, |
| 24 KernelTypeVariableBuilder, | 23 KernelTypeVariableBuilder, |
| 25 LibraryBuilder, | 24 LibraryBuilder, |
| 26 TypeVariableBuilder; | 25 TypeVariableBuilder; |
| 27 | 26 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 typeParameters: typeParameters ?? const <TypeParameter>[], | 69 typeParameters: typeParameters ?? const <TypeParameter>[], |
| 71 requiredParameterCount: requiredParameterCount); | 70 requiredParameterCount: requiredParameterCount); |
| 72 } | 71 } |
| 73 | 72 |
| 74 Supertype buildSupertype(LibraryBuilder library) { | 73 Supertype buildSupertype(LibraryBuilder library) { |
| 75 library.addCompileTimeError( | 74 library.addCompileTimeError( |
| 76 messageSupertypeIsFunction, charOffset, fileUri); | 75 messageSupertypeIsFunction, charOffset, fileUri); |
| 77 return null; | 76 return null; |
| 78 } | 77 } |
| 79 } | 78 } |
| OLD | NEW |