FIx typo in method stub.

This commit is contained in:
Arthur Ozga 2016-11-29 13:36:09 -06:00
parent 5d6a714a04
commit bf48564cc8
13 changed files with 15 additions and 15 deletions

View File

@ -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 {

View File

@ -8,6 +8,6 @@
//// |]}
verify.rangeAfterCodeFix(`f(){
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -8,6 +8,6 @@
//// |]}
verify.rangeAfterCodeFix(`f(x: number): number{
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -8,6 +8,6 @@
//// |]}
verify.rangeAfterCodeFix(`f(x: U): U{
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -8,6 +8,6 @@
verify.rangeAfterCodeFix(`
f(): void{
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -13,6 +13,6 @@
//// }
verify.rangeAfterCodeFix(`f1(): void{
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -15,6 +15,6 @@
//// |]}
verify.rangeAfterCodeFix(`f1<T extends number>(){
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -13,6 +13,6 @@
//// |]}
verify.rangeAfterCodeFix(`f1(): string{
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -8,6 +8,6 @@
//// |]}
verify.rangeAfterCodeFix(`f1(){
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -9,6 +9,6 @@
verify.rangeAfterCodeFix(`
f(x: number,y: string){
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -8,6 +8,6 @@
//// |]}
verify.rangeAfterCodeFix(`f1(): string {
throw new Error('Method not Implemented');
throw new Error('Method not implemented.');
}
`);

View File

@ -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.');
}
`);

View File

@ -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.');
}
`);