| Index: pkg/analysis_server/test/services/completion/optype_test.dart
|
| diff --git a/pkg/analysis_server/test/services/completion/optype_test.dart b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| index a6b99715f5c11698d9fe441654013ff25a391d0f..d3ff65dd97abadfe4a41c833c67b0ea8f9f7a175 100644
|
| --- a/pkg/analysis_server/test/services/completion/optype_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| @@ -43,14 +43,9 @@ class OpTypeTest {
|
| visitor = new OpType.forCompletion(completionTarget, offset);
|
| }
|
|
|
| - void assertOpType(
|
| - {bool prefixed: false,
|
| - bool returnValue: false,
|
| - bool typeNames: false,
|
| - bool voidReturn: false,
|
| - bool statementLabel: false,
|
| - bool caseLabel: false,
|
| - bool constructors: false}) {
|
| + void assertOpType({bool prefixed: false, bool returnValue: false,
|
| + bool typeNames: false, bool voidReturn: false, bool statementLabel: false,
|
| + bool caseLabel: false, bool constructors: false}) {
|
| expect(visitor.includeReturnValueSuggestions, returnValue,
|
| reason: 'returnValue');
|
| expect(visitor.includeTypeNameSuggestions, typeNames, reason: 'typeNames');
|
| @@ -243,6 +238,12 @@ class OpTypeTest {
|
| assertOpType(returnValue: true, typeNames: true, voidReturn: true);
|
| }
|
|
|
| + test_Block_keyword() {
|
| + addTestSource('class C { static C get instance => null; } main() {C.in^}');
|
| + assertOpType(
|
| + prefixed: true, returnValue: true, typeNames: true, voidReturn: true);
|
| + }
|
| +
|
| test_Break_after_label() {
|
| addTestSource('main() { foo: while (true) { break foo ^ ; } }');
|
| assertOpType(/* No valid completions */);
|
|
|