| 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 e1646440c071b00890a621615c4aaebfb74562d8..87e4d672e79659d7ece5e167dbd61c701a48a2fe 100644
|
| --- a/pkg/analysis_server/test/services/completion/optype_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| @@ -303,28 +303,28 @@ class OpTypeTest {
|
| assertOpType(returnValue: true, typeNames: true, voidReturn: true);
|
| }
|
|
|
| -
|
| - test_ConditionalExpression_partial_thenExpression() {
|
| + test_ConditionalExpression_elseExpression() {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addTestSource('class C {foo(){var f; {var x;} return a ? T^}}');
|
| + addTestSource('class C {foo(){var f; {var x;} return a ? T1 : T^}}');
|
| assertOpType(returnValue: true, typeNames: true);
|
| }
|
|
|
| - test_ConditionalExpression_partial_thenExpression_empty() {
|
| +
|
| + test_ConditionalExpression_elseExpression_empty() {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addTestSource('class C {foo(){var f; {var x;} return a ? ^}}');
|
| + addTestSource('class C {foo(){var f; {var x;} return a ? T1 : ^}}');
|
| assertOpType(returnValue: true, typeNames: true);
|
| }
|
|
|
| - test_ConditionalExpression_elseExpression() {
|
| + test_ConditionalExpression_partial_thenExpression() {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addTestSource('class C {foo(){var f; {var x;} return a ? T1 : T^}}');
|
| + addTestSource('class C {foo(){var f; {var x;} return a ? T^}}');
|
| assertOpType(returnValue: true, typeNames: true);
|
| }
|
|
|
| - test_ConditionalExpression_elseExpression_empty() {
|
| + test_ConditionalExpression_partial_thenExpression_empty() {
|
| // SimpleIdentifier ConditionalExpression ReturnStatement
|
| - addTestSource('class C {foo(){var f; {var x;} return a ? T1 : ^}}');
|
| + addTestSource('class C {foo(){var f; {var x;} return a ? ^}}');
|
| assertOpType(returnValue: true, typeNames: true);
|
| }
|
|
|
| @@ -377,6 +377,12 @@ class OpTypeTest {
|
| assertOpType(statementLabel: true, caseLabel: true);
|
| }
|
|
|
| + test_DefaultFormalParameter_named_expression() {
|
| + // DefaultFormalParameter FormalParameterList MethodDeclaration
|
| + addTestSource('class A {a(blat: ^) { }}');
|
| + assertOpType(returnValue: true, typeNames: true);
|
| + }
|
| +
|
| test_DoStatement() {
|
| // SimpleIdentifier DoStatement Block
|
| addTestSource('main() {do{} while(^x);}');
|
|
|