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

Unified Diff: pkg/analyzer/test/src/task/incremental_element_builder_test.dart

Issue 2097233002: Fix for parsing not closed comment reference. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 6 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/test/generated/parser_test.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/src/task/incremental_element_builder_test.dart
diff --git a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
index 86f181bdd028e116008c3d4226f0b517aacd0654..8d495afae6345dd3a21a0155b522e12c66b94cf9 100644
--- a/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
+++ b/pkg/analyzer/test/src/task/incremental_element_builder_test.dart
@@ -1623,7 +1623,7 @@ f2() {
''');
}
- test_update_emptyCommentReference() {
+ test_update_commentReference_empty() {
_buildOldUnit(r'''
/// Empty [] reference.
class A {}
@@ -1634,6 +1634,18 @@ class A {}
''');
}
+ test_update_commentReference_notClosed() {
+ _buildOldUnit(r'''
+/// [c)
+class A {}
+''');
+ _buildNewUnit(r'''
+int a;
+/// [c)
+class A {}
+''');
+ }
+
test_update_rewrittenConstructorName() {
_buildOldUnit(r'''
class A {
« no previous file with comments | « pkg/analyzer/test/generated/parser_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698