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

Unified Diff: pkg/analysis_server/test/services/refactoring/extract_local_test.dart

Issue 1117183002: Ignore synthetic tokens when search for AstNode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 | « no previous file | pkg/analyzer/lib/src/generated/ast.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/services/refactoring/extract_local_test.dart
diff --git a/pkg/analysis_server/test/services/refactoring/extract_local_test.dart b/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
index a4e647791504b58f65a96c187579735482586016..a5c29c2bba44538d8fea77824b5d70df7575aeeb 100644
--- a/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
+++ b/pkg/analysis_server/test/services/refactoring/extract_local_test.dart
@@ -706,6 +706,25 @@ main() {
''');
}
+ test_singleExpression_hasParseError_expectedSemicolon() {
+ verifyNoTestUnitErrors = false;
+ indexTestUnit('''
+main(p) {
+ foo
+ p.bar.baz;
+}
+''');
+ _createRefactoringForString('p.bar');
+ // apply refactoring
+ return _assertSuccessfulRefactoring('''
+main(p) {
+ foo
+ var res = p.bar;
+ res.baz;
+}
+''');
+ }
+
test_singleExpression_inExpressionBody() {
indexTestUnit('''
main() {
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/ast.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698