File tree 1 file changed +37
-1
lines changed
pkg/analysis_server/test/client
1 file changed +37
-1
lines changed Original file line number Diff line number Diff line change @@ -367,8 +367,25 @@ void main() {
367
367
completion: 'v' ,
368
368
element: ElementKind .TOP_LEVEL_VARIABLE ,
369
369
kind: CompletionSuggestionKind .INVOCATION );
370
+ }
371
+
372
+ /// See: https://github.com/dart-lang/sdk/issues/40626
373
+ @failingTest
374
+ Future <void > test_project_lib_getters () async {
375
+ await addProjectFile ('lib/a.dart' , r'''
376
+ int get g => 0;
377
+ ''' );
378
+
379
+ await addTestFile ('''
380
+ void main() {
381
+ ^
382
+ }
383
+ ''' );
370
384
371
- // todo (pq): getters/setters?
385
+ expectSuggestion (
386
+ completion: 's' ,
387
+ element: ElementKind .SETTER ,
388
+ kind: CompletionSuggestionKind .INVOCATION );
372
389
}
373
390
374
391
@failingTest
@@ -394,6 +411,25 @@ void main() {
394
411
kind: CompletionSuggestionKind .INVOCATION );
395
412
}
396
413
414
+ /// See: https://github.com/dart-lang/sdk/issues/40626
415
+ @failingTest
416
+ Future <void > test_project_lib_setters () async {
417
+ await addProjectFile ('lib/a.dart' , r'''
418
+ set s(int s) {}
419
+ ''' );
420
+
421
+ await addTestFile ('''
422
+ void main() {
423
+ ^
424
+ }
425
+ ''' );
426
+
427
+ expectSuggestion (
428
+ completion: 's' ,
429
+ element: ElementKind .SETTER ,
430
+ kind: CompletionSuggestionKind .INVOCATION );
431
+ }
432
+
397
433
Future <void > test_sdk_lib_future_isNotDuplicated () async {
398
434
await addTestFile ('''
399
435
void main() {
You can’t perform that action at this time.
0 commit comments