| 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 ff74539d11a0cb6d1636b313632602254493b98b..3e487c871d88b38a2c900b0d4b91df971b5677eb 100644
|
| --- a/pkg/analysis_server/test/services/completion/optype_test.dart
|
| +++ b/pkg/analysis_server/test/services/completion/optype_test.dart
|
| @@ -1131,6 +1131,42 @@ class C2 {
|
| assertOpType(returnValue: true, voidReturn: true, prefixed: true);
|
| }
|
|
|
| + test_ThisExpression_constructor_param() {
|
| + // SimpleIdentifier FieldFormalParameter FormalParameterList
|
| + addTestSource('''
|
| + class A implements I {
|
| + A(this.^) {}
|
| + }''');
|
| + assertOpType(prefixed: true);
|
| + }
|
| +
|
| + test_ThisExpression_constructor_param2() {
|
| + // SimpleIdentifier FieldFormalParameter FormalParameterList
|
| + addTestSource('''
|
| + class A implements I {
|
| + A(this.f^) {}
|
| + }''');
|
| + assertOpType(prefixed: true);
|
| + }
|
| +
|
| + test_ThisExpression_constructor_param3() {
|
| + // SimpleIdentifier FieldFormalParameter FormalParameterList
|
| + addTestSource('''
|
| + class A implements I {
|
| + A(this.^f) {}
|
| + }''');
|
| + assertOpType(prefixed: true);
|
| + }
|
| +
|
| + test_ThisExpression_constructor_param4() {
|
| + // FieldFormalParameter FormalParameterList ConstructorDeclaration
|
| + addTestSource('''
|
| + class A implements I {
|
| + A(Str^ this.foo) {}
|
| + }''');
|
| + assertOpType(typeNames: true);
|
| + }
|
| +
|
| test_ThrowExpression() {
|
| // SimpleIdentifier ThrowExpression ExpressionStatement
|
| addTestSource('main() {throw ^;}');
|
|
|