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

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

Issue 1820743002: Issue 26051. Fix for MethodDeclartion.beginToken for external. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/lib/src/dart/ast/ast.dart ('k') | pkg/analyzer/test/dart/ast/ast_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 d8d44f4d0dc5a6a4db3b6fe89bb9b11e788523ef..6983cc80ab7ceb808558b8e42a548ab7a41285a2 100644
--- a/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
@@ -869,6 +869,28 @@ class AstFactory {
parameters,
body);
+ static MethodDeclaration methodDeclaration4(
+ {bool external: false,
+ Keyword modifier,
+ TypeName returnType,
+ Keyword property,
+ bool operator: false,
+ String name,
+ FormalParameterList parameters,
+ FunctionBody body}) =>
+ new MethodDeclaration(
+ null,
+ null,
+ external ? TokenFactory.tokenFromKeyword(Keyword.EXTERNAL) : null,
+ modifier == null ? null : TokenFactory.tokenFromKeyword(modifier),
+ returnType,
+ property == null ? null : TokenFactory.tokenFromKeyword(property),
+ operator ? TokenFactory.tokenFromKeyword(Keyword.OPERATOR) : null,
+ identifier3(name),
+ null,
+ parameters,
+ body);
+
static MethodInvocation methodInvocation(Expression target, String methodName,
[List<Expression> arguments,
TokenType operator = TokenType.PERIOD]) =>
« no previous file with comments | « pkg/analyzer/lib/src/dart/ast/ast.dart ('k') | pkg/analyzer/test/dart/ast/ast_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698