Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: pkg/front_end/lib/src/fasta/kernel/kernel_function_type_builder.dart

Issue 2990783002: Serialize typedef parameters (including function typed ones) to Kernel and use it to resynthesize t… (Closed)
Patch Set: Test for named parameters. Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/kernel_function_type_alias_builder.dart ('k') | pkg/kernel/lib/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698