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

Unified Diff: pkg/front_end/lib/src/fasta/builder/ast_factory.dart

Issue 2857133004: Change Accessor(s) to use AstFactory to create MethodInvocation, PropertyGet/Set. (Closed)
Patch Set: Created 3 years, 8 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/front_end/front_end.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 4a14a4bce02b1de583b78e71dd2efbf2df3f4212..d6ba3266fef99542c4e17a4d769ec3607976d845 100644
--- a/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
+++ b/pkg/front_end/lib/src/fasta/builder/ast_factory.dart
@@ -107,12 +107,25 @@ abstract class AstFactory<V> {
{DartType keyType: const DynamicType(),
DartType valueType: const DynamicType()});
+ /// Creates a method invocation of form `x.foo(y)`.
+ MethodInvocation methodInvocation(
+ Expression receiver, Name name, Arguments arguments,
+ [Procedure interfaceTarget]);
+
/// Create an expression of form `!x`.
Not not(Token token, Expression operand);
/// Creates a null literal expression.
NullLiteral nullLiteral(Token token);
+ /// Creates a read of a property.
+ PropertyGet propertyGet(Expression receiver, Name name,
+ [Member interfaceTarget]);
+
+ /// Creates a write of a property.
+ PropertySet propertySet(Expression receiver, Name name, Expression value,
+ [Member interfaceTarget]);
+
/// Create a `rethrow` expression.
Rethrow rethrowExpression(Token keyword);
« no previous file with comments | « pkg/front_end/front_end.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