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

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

Issue 1083093002: Don't permit annotations inside variable declarations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix a bogus comment. 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 0be2aaa770da609636a2b9856ca468fb69afd43f..00ee216400dca150f932b7df8266b495f25fe732 100644
--- a/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
+++ b/pkg/analyzer/lib/src/generated/testing/ast_factory.dart
@@ -905,12 +905,11 @@ class AstFactory {
}
static VariableDeclaration variableDeclaration(String name) =>
- new VariableDeclaration(null, null, identifier3(name), null, null);
+ new VariableDeclaration(identifier3(name), null, null);
static VariableDeclaration variableDeclaration2(
- String name, Expression initializer) => new VariableDeclaration(null,
- null, identifier3(name), TokenFactory.tokenFromType(TokenType.EQ),
- initializer);
+ String name, Expression initializer) => new VariableDeclaration(
+ identifier3(name), TokenFactory.tokenFromType(TokenType.EQ), initializer);
static VariableDeclarationList variableDeclarationList(Keyword keyword,
TypeName type, List<VariableDeclaration> variables) =>

Powered by Google App Engine
This is Rietveld 408576698