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

Unified Diff: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ASTFactory.java

Issue 18325018: New analyzer_experimental snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « no previous file | editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ASTFactory.java
diff --git a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ASTFactory.java b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ASTFactory.java
index a34454039438b106809da046feffdce98b278641..c2bfb7897daf2b11d25716ffa3e3a32367a52b9c 100644
--- a/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ASTFactory.java
+++ b/editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ASTFactory.java
@@ -543,7 +543,8 @@ public final class ASTFactory {
type,
token(Keyword.THIS),
token(TokenType.PERIOD),
- identifier);
+ identifier,
+ null);
}
public static FieldFormalParameter fieldFormalParameter(Keyword keyword, TypeName type,
@@ -551,6 +552,19 @@ public final class ASTFactory {
return fieldFormalParameter(keyword, type, identifier(identifier));
}
+ public static FieldFormalParameter fieldFormalParameter(Keyword keyword, TypeName type,
+ String identifier, FormalParameterList parameterList) {
+ return new FieldFormalParameter(
+ null,
+ null,
+ keyword == null ? null : token(keyword),
+ type,
+ token(Keyword.THIS),
+ token(TokenType.PERIOD),
+ identifier(identifier),
+ parameterList);
+ }
+
public static ForEachStatement forEachStatement(DeclaredIdentifier loopParameter,
Expression iterator, Statement body) {
return new ForEachStatement(
« no previous file with comments | « no previous file | editor/util/plugins/com.google.dart.java2dart/src/com/google/dart/java2dart/util/ToFormattedSourceVisitor.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698