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

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

Issue 717393006: Fix incremental scanner's computation of scanEnd. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | « pkg/analyzer/test/generated/incremental_scanner_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/generated/parser_test.dart
diff --git a/pkg/analyzer/test/generated/parser_test.dart b/pkg/analyzer/test/generated/parser_test.dart
index 7ee8a2c21c7a2b2fa633f0944227f5601461722b..66a62134eabf169507a67425f35aa62560e56a33 100644
--- a/pkg/analyzer/test/generated/parser_test.dart
+++ b/pkg/analyzer/test/generated/parser_test.dart
@@ -2690,6 +2690,23 @@ class IncrementalParserTest extends EngineTestCase {
"; }");
}
+ void test_insert_statement_in_method_with_mismatched_braces() {
+ _assertParse('''
+class C {
+ void f() {
+''', '', 'g();', '''
+ if (b) {
+
+
+ }
+
+ void g() {
+ h((x) {});
+ }
+}
+''');
+ }
+
void test_insert_whitespace_end() {
// "f() => a + b;"
// "f() => a + b; "
« no previous file with comments | « pkg/analyzer/test/generated/incremental_scanner_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698