mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
add refactorNotAvailableForTriggerReason
This commit is contained in:
parent
dc363f10fc
commit
85e0d8b14a
@ -214,6 +214,10 @@ namespace FourSlashInterface {
|
||||
public refactorAvailableForTriggerReason(triggerReason: ts.RefactorTriggerReason, name: string, actionName?: string) {
|
||||
this.state.verifyRefactorAvailable(this.negative, triggerReason, name, actionName);
|
||||
}
|
||||
|
||||
public refactorNotAvailableForTriggerReason(triggerReason: ts.RefactorTriggerReason, name: string, actionName?: string) {
|
||||
this.state.verifyRefactorAvailable(!this.negative, triggerReason, name, actionName);
|
||||
}
|
||||
}
|
||||
|
||||
export class Verify extends VerifyNegatable {
|
||||
|
||||
@ -243,7 +243,8 @@ declare namespace FourSlashInterface {
|
||||
applicableRefactorAvailableForRange(): void;
|
||||
|
||||
refactorAvailable(name: string, actionName?: string): void;
|
||||
refactorAvailableForTriggerReason(triggerReason: RefactorTriggerReason, name: string, action?: string): void
|
||||
refactorAvailableForTriggerReason(triggerReason: RefactorTriggerReason, name: string, action?: string): void;
|
||||
refactorNotAvailableForTriggerReason(triggerReason: RefactorTriggerReason, name: string, action?: string): void;
|
||||
}
|
||||
class verify extends verifyNegatable {
|
||||
assertHasRanges(ranges: Range[]): void;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user