@@ -607,23 +607,13 @@ namespace FourSlash {
607
607
} ) ;
608
608
}
609
609
610
- public verifyMemberListContains ( symbol : string , text ?: string , documentation ?: string , kind ?: string ) {
611
- const members = this . getMemberListAtCaret ( ) ;
612
- if ( members ) {
613
- this . assertItemInCompletionList ( members . entries , symbol , text , documentation , kind ) ;
614
- }
615
- else {
616
- this . raiseError ( "Expected a member list, but none was provided" ) ;
617
- }
618
- }
619
-
620
- public verifyMemberListCount ( expectedCount : number , negative : boolean ) {
610
+ public verifyCompletionListCount ( expectedCount : number , negative : boolean ) {
621
611
if ( expectedCount === 0 && negative ) {
622
- this . verifyMemberListIsEmpty ( /*negative*/ false ) ;
612
+ this . verifyCompletionListIsEmpty ( /*negative*/ false ) ;
623
613
return ;
624
614
}
625
615
626
- const members = this . getMemberListAtCaret ( ) ;
616
+ const members = this . getCompletionListAtCaret ( ) ;
627
617
628
618
if ( members ) {
629
619
const match = members . entries . length === expectedCount ;
@@ -637,13 +627,6 @@ namespace FourSlash {
637
627
}
638
628
}
639
629
640
- public verifyMemberListDoesNotContain ( symbol : string ) {
641
- const members = this . getMemberListAtCaret ( ) ;
642
- if ( members && members . entries . filter ( e => e . name === symbol ) . length !== 0 ) {
643
- this . raiseError ( `Member list did contain ${ symbol } ` ) ;
644
- }
645
- }
646
-
647
630
public verifyCompletionListItemsCountIsGreaterThan ( count : number , negative : boolean ) {
648
631
const completions = this . getCompletionListAtCaret ( ) ;
649
632
const itemsCount = completions . entries . length ;
@@ -685,16 +668,6 @@ namespace FourSlash {
685
668
}
686
669
}
687
670
688
- public verifyMemberListIsEmpty ( negative : boolean ) {
689
- const members = this . getMemberListAtCaret ( ) ;
690
- if ( ( ! members || members . entries . length === 0 ) && negative ) {
691
- this . raiseError ( "Member list is empty at Caret" ) ;
692
- }
693
- else if ( ( members && members . entries . length !== 0 ) && ! negative ) {
694
- this . raiseError ( `Member list is not empty at Caret:\nMember List contains: ${ stringify ( members . entries . map ( e => e . name ) ) } ` ) ;
695
- }
696
- }
697
-
698
671
public verifyCompletionListIsEmpty ( negative : boolean ) {
699
672
const completions = this . getCompletionListAtCaret ( ) ;
700
673
if ( ( ! completions || completions . entries . length === 0 ) && negative ) {
@@ -892,10 +865,6 @@ namespace FourSlash {
892
865
this . raiseError ( `verifyReferencesAtPositionListContains failed - could not find the item: ${ stringify ( missingItem ) } in the returned list: (${ stringify ( references ) } )` ) ;
893
866
}
894
867
895
- private getMemberListAtCaret ( ) {
896
- return this . languageService . getCompletionsAtPosition ( this . activeFile . fileName , this . currentCaretPosition ) ;
897
- }
898
-
899
868
private getCompletionListAtCaret ( ) {
900
869
return this . languageService . getCompletionsAtPosition ( this . activeFile . fileName , this . currentCaretPosition ) ;
901
870
}
@@ -1353,11 +1322,6 @@ namespace FourSlash {
1353
1322
Harness . IO . log ( stringify ( sigHelp ) ) ;
1354
1323
}
1355
1324
1356
- public printMemberListMembers ( ) {
1357
- const members = this . getMemberListAtCaret ( ) ;
1358
- this . printMembersOrCompletions ( members ) ;
1359
- }
1360
-
1361
1325
public printCompletionListMembers ( ) {
1362
1326
const completions = this . getCompletionListAtCaret ( ) ;
1363
1327
this . printMembersOrCompletions ( completions ) ;
@@ -3061,19 +3025,8 @@ namespace FourSlashInterface {
3061
3025
}
3062
3026
}
3063
3027
3064
- // Verifies the member list contains the specified symbol. The
3065
- // member list is brought up if necessary
3066
- public memberListContains ( symbol : string , text ?: string , documentation ?: string , kind ?: string ) {
3067
- if ( this . negative ) {
3068
- this . state . verifyMemberListDoesNotContain ( symbol ) ;
3069
- }
3070
- else {
3071
- this . state . verifyMemberListContains ( symbol , text , documentation , kind ) ;
3072
- }
3073
- }
3074
-
3075
- public memberListCount ( expectedCount : number ) {
3076
- this . state . verifyMemberListCount ( expectedCount , this . negative ) ;
3028
+ public completionListCount ( expectedCount : number ) {
3029
+ this . state . verifyCompletionListCount ( expectedCount , this . negative ) ;
3077
3030
}
3078
3031
3079
3032
// Verifies the completion list contains the specified symbol. The
@@ -3109,10 +3062,6 @@ namespace FourSlashInterface {
3109
3062
this . state . verifyCompletionListAllowsNewIdentifier ( this . negative ) ;
3110
3063
}
3111
3064
3112
- public memberListIsEmpty ( ) {
3113
- this . state . verifyMemberListIsEmpty ( this . negative ) ;
3114
- }
3115
-
3116
3065
public signatureHelpPresent ( ) {
3117
3066
this . state . verifySignatureHelpPresent ( ! this . negative ) ;
3118
3067
}
@@ -3514,10 +3463,6 @@ namespace FourSlashInterface {
3514
3463
this . state . printCurrentSignatureHelp ( ) ;
3515
3464
}
3516
3465
3517
- public printMemberListMembers ( ) {
3518
- this . state . printMemberListMembers ( ) ;
3519
- }
3520
-
3521
3466
public printCompletionListMembers ( ) {
3522
3467
this . state . printCompletionListMembers ( ) ;
3523
3468
}
0 commit comments