| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 test.services.completion.statement; | 5 library test.services.completion.statement; |
| 6 | 6 |
| 7 import 'package:analysis_server/src/protocol_server.dart'; | 7 import 'package:analysis_server/src/protocol_server.dart'; |
| 8 import 'package:analysis_server/src/services/completion/statement/statement_comp
letion.dart'; | 8 import 'package:analysis_server/src/services/completion/statement/statement_comp
letion.dart'; |
| 9 import 'package:analyzer/src/dart/analysis/driver.dart'; | 9 import 'package:analyzer/src/dart/analysis/driver.dart'; |
| 10 import 'package:test/test.dart'; | 10 import 'package:test/test.dart'; |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 main() { | 210 main() { |
| 211 for (int i = 0;) { | 211 for (int i = 0;) { |
| 212 } | 212 } |
| 213 } | 213 } |
| 214 ''', | 214 ''', |
| 215 atEnd: true); | 215 atEnd: true); |
| 216 _assertHasChange( | 216 _assertHasChange( |
| 217 'Complete for-statement', | 217 'Complete for-statement', |
| 218 ''' | 218 ''' |
| 219 main() { | 219 main() { |
| 220 for (int i = 0; ) { | 220 for (int i = 0; ; ) { |
| 221 } | 221 } |
| 222 } | 222 } |
| 223 ''', | 223 ''', |
| 224 (s) => _after(s, '0; ')); | 224 (s) => _after(s, '0; ')); |
| 225 } | 225 } |
| 226 | 226 |
| 227 test_emptyInitializers() async { | 227 test_emptyInitializers() async { |
| 228 await _prepareCompletion( | 228 await _prepareCompletion( |
| 229 '}', | 229 '}', |
| 230 ''' | 230 ''' |
| (...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 ''' | 893 ''' |
| 894 main() { | 894 main() { |
| 895 while () { | 895 while () { |
| 896 //// | 896 //// |
| 897 } | 897 } |
| 898 } | 898 } |
| 899 ''', | 899 ''', |
| 900 (s) => _after(s, 'while (')); | 900 (s) => _after(s, 'while (')); |
| 901 } | 901 } |
| 902 } | 902 } |
| OLD | NEW |