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

Unified Diff: pkg/front_end/lib/src/fasta/builder/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
« no previous file with comments | « pkg/analyzer_plugin/analyzer_plugin.iml ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/front_end/lib/src/fasta/builder/ast_factory.dart
diff --git a/pkg/front_end/lib/src/fasta/builder/ast_factory.dart b/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
index ec853d80e39dd0db99b2bea4a147d49cb99ebb4f..453281083a1c205fd5432163516d1eaa42f16b75 100644
--- a/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
+++ b/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
@@ -35,6 +35,10 @@ import 'package:kernel/ast.dart';
/// shadow-ify [DartType], since analyzer ASTs need to be able to record the
/// exact tokens that were used to specify a type.
abstract class AstFactory<V> {
+ /// Creates an [Arguments] data structure.
+ Arguments arguments(List<Expression> positional,
+ {List<DartType> types, List<NamedExpression> named});
+
/// Creates an `as` expression.
AsExpression asExpression(Expression operand, Token operator, DartType type);
@@ -132,6 +136,10 @@ abstract class AstFactory<V> {
/// Creates a return statement.
Statement returnStatement(Expression expression, Token token);
+ /// Updates an [Arguments] data structure with the given generic [types].
+ /// Should only be used when [types] were specified explicitly.
+ void setExplicitArgumentTypes(Arguments arguments, List<DartType> types);
+
/// Creates a read of a static variable.
StaticGet staticGet(Member readTarget, Token token);
« no previous file with comments | « pkg/analyzer_plugin/analyzer_plugin.iml ('k') | pkg/front_end/lib/src/fasta/kernel/body_builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698