mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-28 08:57:35 -06:00
FIx typo in method stub.
This commit is contained in:
parent
5d6a714a04
commit
bf48564cc8
@ -50,7 +50,7 @@ namespace ts.codefix {
|
||||
}
|
||||
|
||||
function getMethodBodyStub(newLineChar: string) {
|
||||
return `{${newLineChar}throw new Error('Method not Implemented');${newLineChar}}${newLineChar}`;
|
||||
return `{${newLineChar}throw new Error('Method not implemented.');${newLineChar}}${newLineChar}`;
|
||||
}
|
||||
|
||||
function getVisibilityPrefix(flags: ModifierFlags): string {
|
||||
|
||||
@ -8,6 +8,6 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f(){
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
@ -8,6 +8,6 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f(x: number): number{
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
@ -8,6 +8,6 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f(x: U): U{
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
@ -8,6 +8,6 @@
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
f(): void{
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
|
||||
@ -13,6 +13,6 @@
|
||||
//// }
|
||||
|
||||
verify.rangeAfterCodeFix(`f1(): void{
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
|
||||
@ -15,6 +15,6 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f1<T extends number>(){
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
@ -13,6 +13,6 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f1(): string{
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
|
||||
@ -8,6 +8,6 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f1(){
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
|
||||
@ -9,6 +9,6 @@
|
||||
|
||||
verify.rangeAfterCodeFix(`
|
||||
f(x: number,y: string){
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
|
||||
@ -8,6 +8,6 @@
|
||||
//// |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f1(): string {
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
|
||||
@ -7,6 +7,6 @@
|
||||
//// class C implements I {[| |]}
|
||||
|
||||
verify.rangeAfterCodeFix(`f<T extends number>(x: T){
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
@ -17,12 +17,12 @@ x: number;
|
||||
y: number;
|
||||
z: number;
|
||||
f() {
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
g() {
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
h() {
|
||||
throw new Error('Method not Implemented');
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
`);
|
||||
Loading…
x
Reference in New Issue
Block a user