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

Side by Side Diff: pkg/analyzer/lib/src/dart/ast/ast.dart

Issue 1994243002: Dangling comment reference cleanup in analyzer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « pkg/analyzer/lib/src/context/source.dart ('k') | pkg/analyzer/lib/src/dart/ast/token.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.src.dart.ast.ast; 5 library analyzer.src.dart.ast.ast;
6 6
7 import 'dart:collection'; 7 import 'dart:collection';
8 8
9 import 'package:analyzer/dart/ast/ast.dart'; 9 import 'package:analyzer/dart/ast/ast.dart';
10 import 'package:analyzer/dart/ast/token.dart'; 10 import 'package:analyzer/dart/ast/token.dart';
(...skipping 2113 matching lines...) Expand 10 before | Expand all | Expand 10 after
2124 2124
2125 /** 2125 /**
2126 * The references embedded within the documentation comment. This list will be 2126 * The references embedded within the documentation comment. This list will be
2127 * empty unless this is a documentation comment that has references embedded 2127 * empty unless this is a documentation comment that has references embedded
2128 * within it. 2128 * within it.
2129 */ 2129 */
2130 NodeList<CommentReference> _references; 2130 NodeList<CommentReference> _references;
2131 2131
2132 /** 2132 /**
2133 * Initialize a newly created comment. The list of [tokens] must contain at 2133 * Initialize a newly created comment. The list of [tokens] must contain at
2134 * least one token. The [type] is the type of the comment. The list of 2134 * least one token. The [_type] is the type of the comment. The list of
2135 * [references] can be empty if the comment does not contain any embedded 2135 * [references] can be empty if the comment does not contain any embedded
2136 * references. 2136 * references.
2137 */ 2137 */
2138 CommentImpl(this.tokens, this._type, List<CommentReference> references) { 2138 CommentImpl(this.tokens, this._type, List<CommentReference> references) {
2139 _references = new NodeListImpl<CommentReference>(this, references); 2139 _references = new NodeListImpl<CommentReference>(this, references);
2140 } 2140 }
2141 2141
2142 @override 2142 @override
2143 Token get beginToken => tokens[0]; 2143 Token get beginToken => tokens[0];
2144 2144
(...skipping 8888 matching lines...) Expand 10 before | Expand all | Expand 10 after
11033 11033
11034 @override 11034 @override
11035 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) => 11035 dynamic/*=E*/ accept/*<E>*/(AstVisitor/*<E>*/ visitor) =>
11036 visitor.visitYieldStatement(this); 11036 visitor.visitYieldStatement(this);
11037 11037
11038 @override 11038 @override
11039 void visitChildren(AstVisitor visitor) { 11039 void visitChildren(AstVisitor visitor) {
11040 _expression?.accept(visitor); 11040 _expression?.accept(visitor);
11041 } 11041 }
11042 } 11042 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/context/source.dart ('k') | pkg/analyzer/lib/src/dart/ast/token.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698