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

Unified Diff: pkg/analyzer/lib/src/generated/testing/ast_factory.dart

Issue 1062723002: Implement the new '?.' operator in analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bump analyzer version. Created 5 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/analyzer/lib/src/generated/testing/ast_factory.dart
diff --git a/pkg/analyzer/lib/src/generated/testing/ast_factory.dart b/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
index 0393bb6287058a78a2de8779291ae99c1fbf2170..0be2aaa770da609636a2b9856ca468fb69afd43f 100644
--- a/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
@@ -622,8 +622,9 @@ class AstFactory {
parameters, body);
static MethodInvocation methodInvocation(Expression target, String methodName,
- [List<Expression> arguments]) => new MethodInvocation(target,
- target == null ? null : TokenFactory.tokenFromType(TokenType.PERIOD),
+ [List<Expression> arguments,
+ TokenType operator = TokenType.PERIOD]) => new MethodInvocation(target,
+ target == null ? null : TokenFactory.tokenFromType(operator),
identifier3(methodName), argumentList(arguments));
static MethodInvocation methodInvocation2(String methodName,

Powered by Google App Engine
This is Rietveld 408576698