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

Unified Diff: compiler/java/com/google/dart/compiler/parser/DartParser.java

Issue 11369129: Issue 6463. Remove support for obsolete metadata in comments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | compiler/java/com/google/dart/compiler/parser/DartParserCommentsHelper.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/parser/DartParser.java
diff --git a/compiler/java/com/google/dart/compiler/parser/DartParser.java b/compiler/java/com/google/dart/compiler/parser/DartParser.java
index 055b5b0f89536b7635356fa61d5195e1bf0f1eb5..b6a362e4db72d6457387e3d99cbdb31354784a29 100644
--- a/compiler/java/com/google/dart/compiler/parser/DartParser.java
+++ b/compiler/java/com/google/dart/compiler/parser/DartParser.java
@@ -2036,7 +2036,6 @@ public class DartParser extends CompletionHooksParserBase {
List<DartAnnotation> metadata = parseMetadata();
do {
beginVariableDeclaration();
- List<DartAnnotation> fieldMetadata = parseMetadata();
DartIdentifier name = parseIdentifier();
DartExpression value = null;
if (optional(Token.ASSIGN)) {
@@ -2049,7 +2048,7 @@ public class DartParser extends CompletionHooksParserBase {
reportError(name, ParserErrorCode.EXTERNAL_ONLY_METHOD);
}
DartField field = done(new DartField(name, modifiers, null, value));
- setMetadata(field, fieldMetadata);
+ setMetadata(field, metadata);
fields.add(field);
} while (optional(Token.COMMA));
DartFieldDefinition definition = new DartFieldDefinition(type, fields);
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/parser/DartParserCommentsHelper.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698