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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart

Issue 2864853002: Fix constructor invocation type inference. (Closed)
Patch Set: Rebase and remove unnecessary changes Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
index d878af8372685c5ccad37cfa24ca4794d0ddb2b7..6982553f7b23b4c6997cb7abad3df77eb0012a6d 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_ast_factory.dart
@@ -13,6 +13,12 @@ import 'kernel_shadow_ast.dart';
/// Concrete implementation of [builder.AstFactory] for building a kernel AST.
class KernelAstFactory implements AstFactory<VariableDeclaration> {
@override
+ Arguments arguments(List<Expression> positional,
+ {List<DartType> types, List<NamedExpression> named}) {
+ return new KernelArguments(positional, types: types, named: named);
+ }
+
+ @override
AsExpression asExpression(Expression operand, Token operator, DartType type) {
return new KernelAsExpression(operand, type)
..fileOffset = offsetForToken(operator);
@@ -168,6 +174,11 @@ class KernelAstFactory implements AstFactory<VariableDeclaration> {
}
@override
+ void setExplicitArgumentTypes(Arguments arguments, List<DartType> types) {
+ KernelArguments.setExplicitArgumentTypes(arguments, types);
+ }
+
+ @override
StaticGet staticGet(Member readTarget, Token token) {
return new KernelStaticGet(readTarget)..fileOffset = offsetForToken(token);
}
« no previous file with comments | « pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart ('k') | pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698