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

Unified Diff: pkg/analyzer/test/generated/utilities_test.dart

Issue 1715723002: Fix node replacer to handle comments on variable declaration lists (issue 25818) (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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 | « pkg/analyzer/lib/src/dart/ast/utilities.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/utilities_test.dart
diff --git a/pkg/analyzer/test/generated/utilities_test.dart b/pkg/analyzer/test/generated/utilities_test.dart
index 17eb9659971a3086ae8ef926bc2e68e796e793e8..f6f898a9dccc44578ce1638614ff6618a56d2ed7 100644
--- a/pkg/analyzer/test/generated/utilities_test.dart
+++ b/pkg/analyzer/test/generated/utilities_test.dart
@@ -3751,10 +3751,14 @@ class NodeReplacerTest extends EngineTestCase {
void test_variableDeclarationList() {
VariableDeclarationList node = AstFactory.variableDeclarationList(
null, AstFactory.typeName4("T"), [AstFactory.variableDeclaration("a")]);
+ node.documentationComment =
+ Comment.createEndOfLineComment(EMPTY_TOKEN_LIST);
+ node.metadata.add(AstFactory.annotation(AstFactory.identifier3("a")));
_assertReplace(
node, new Getter_NodeReplacerTest_test_variableDeclarationList());
_assertReplace(
node, new ListGetter_NodeReplacerTest_test_variableDeclarationList(0));
+ _testAnnotatedNode(node);
}
void test_variableDeclarationStatement() {
« no previous file with comments | « pkg/analyzer/lib/src/dart/ast/utilities.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698