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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_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
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 1f06483d59825b3833f2ed65cf8185c9f09e53e3..e3516b15a83809e6bd044776b936f9c66cf576cf 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
@@ -128,6 +128,13 @@ class KernelAstFactory implements AstFactory<VariableDeclaration> {
}
@override
+ MethodInvocation methodInvocation(
+ Expression receiver, Name name, Arguments arguments,
+ [Procedure interfaceTarget]) {
+ return new KernelMethodInvocation(receiver, name, arguments);
+ }
+
+ @override
Not not(Token token, Expression operand) {
return new KernelNot(operand)..fileOffset = offsetForToken(token);
}
@@ -138,6 +145,18 @@ class KernelAstFactory implements AstFactory<VariableDeclaration> {
}
@override
+ PropertyGet propertyGet(Expression receiver, Name name,
+ [Member interfaceTarget]) {
+ return new KernelPropertyGet(receiver, name, interfaceTarget);
+ }
+
+ @override
+ PropertySet propertySet(Expression receiver, Name name, Expression value,
+ [Member interfaceTarget]) {
+ return new KernelPropertySet(receiver, name, value, interfaceTarget);
+ }
+
+ @override
Rethrow rethrowExpression(Token keyword) {
return new KernelRethrow()..fileOffset = offsetForToken(keyword);
}
« 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