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

Unified Diff: pkg/analyzer/tool/summary/mini_ast.dart

Issue 2763833002: fasta.CommentToken implement analyzer.CommentToken (Closed)
Patch Set: merge Created 3 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
Index: pkg/analyzer/tool/summary/mini_ast.dart
diff --git a/pkg/analyzer/tool/summary/mini_ast.dart b/pkg/analyzer/tool/summary/mini_ast.dart
index 930efe9d4783a9822411f67374624ee87777a71a..e84afa9d4b46b260c68b99396ff452527816af3e 100644
--- a/pkg/analyzer/tool/summary/mini_ast.dart
+++ b/pkg/analyzer/tool/summary/mini_ast.dart
@@ -163,7 +163,7 @@ class MiniAstBuilder extends StackListener {
void beginMetadataStar(Token token) {
debugEvent("beginMetadataStar");
if (token.precedingComments != null) {
- push(new Comment(token.precedingComments));
+ push(new Comment(token.precedingCommentTokens));
} else {
push(NullValue.Comments);
}
@@ -389,7 +389,7 @@ class MiniAstBuilder extends StackListener {
void handleIdentifier(Token token, IdentifierContext context) {
if (context == IdentifierContext.enumValueDeclaration) {
- var comment = new Comment(token.precedingComments);
+ var comment = new Comment(token.precedingCommentTokens);
push(new EnumConstantDeclaration(comment, null, token.lexeme));
} else {
push(token.lexeme);
« no previous file with comments | « pkg/analyzer/lib/src/fasta/token_utils.dart ('k') | pkg/front_end/lib/src/fasta/scanner/abstract_scanner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698