From a62b47eace853463a8dc7ee73d1851a978675ff2 Mon Sep 17 00:00:00 2001 From: Vladimir Matveev Date: Thu, 31 Jul 2014 11:06:42 -0700 Subject: [PATCH] addressed CR feedback: changed error message --- src/compiler/checker.ts | 2 +- src/compiler/diagnosticInformationMap.generated.ts | 2 +- src/compiler/diagnosticMessages.json | 2 +- .../baselines/reference/ClassDeclaration10.errors.txt | 2 +- .../baselines/reference/ClassDeclaration14.errors.txt | 2 +- .../baselines/reference/ClassDeclaration15.errors.txt | 2 +- .../baselines/reference/ClassDeclaration25.errors.txt | 4 ++-- tests/baselines/reference/ClassDeclaration9.errors.txt | 2 +- .../reference/FunctionDeclaration3.errors.txt | 2 +- .../reference/FunctionDeclaration7.errors.txt | 2 +- ...ssignmentCompatFunctionsWithOptionalArgs.errors.txt | 2 +- tests/baselines/reference/callOverloads1.errors.txt | 2 +- tests/baselines/reference/callOverloads2.errors.txt | 2 +- tests/baselines/reference/callOverloads3.errors.txt | 2 +- tests/baselines/reference/callOverloads4.errors.txt | 2 +- tests/baselines/reference/callOverloads5.errors.txt | 2 +- .../reference/classOverloadForFunction2.errors.txt | 2 +- ...ssWithOverloadImplementationOfWrongName2.errors.txt | 2 +- .../reference/crashOnMethodSignatures.errors.txt | 2 +- tests/baselines/reference/dottedModuleName.errors.txt | 2 +- tests/baselines/reference/externModule.errors.txt | 10 +++++----- ...nctionOverloadImplementationOfWrongName2.errors.txt | 2 +- .../baselines/reference/functionOverloads1.errors.txt | 2 +- .../baselines/reference/functionOverloads3.errors.txt | 2 +- .../reference/functionOverloadsOutOfOrder.errors.txt | 4 ++-- .../reference/incorrectClassOverloadChain.errors.txt | 2 +- tests/baselines/reference/indexer2A.errors.txt | 2 +- ...rFunctionOverloadMixingStaticAndInstance.errors.txt | 8 ++++---- .../objectTypesWithOptionalProperties2.errors.txt | 4 ++-- .../reference/parserClassDeclaration10.errors.txt | 2 +- .../reference/parserClassDeclaration14.errors.txt | 2 +- .../reference/parserClassDeclaration15.errors.txt | 2 +- .../reference/parserClassDeclaration25.errors.txt | 4 ++-- .../reference/parserClassDeclaration9.errors.txt | 2 +- .../parserEqualsGreaterThanAfterFunction1.errors.txt | 2 +- .../parserEqualsGreaterThanAfterFunction2.errors.txt | 2 +- ...serErrantEqualsGreaterThanAfterFunction1.errors.txt | 2 +- ...serErrantEqualsGreaterThanAfterFunction2.errors.txt | 2 +- .../parserErrorRecovery_ParameterList6.errors.txt | 2 +- .../reference/parserFunctionDeclaration3.errors.txt | 2 +- .../reference/parserFunctionDeclaration7.errors.txt | 2 +- .../reference/parserModuleDeclaration10.errors.txt | 4 ++-- .../reference/parserSkippedTokens16.errors.txt | 2 +- .../reference/staticClassMemberError.errors.txt | 2 +- 44 files changed, 56 insertions(+), 56 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index 6bb7635843d..edfabad5e8e 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -4909,7 +4909,7 @@ module ts { error(errorNode, Diagnostics.Constructor_implementation_is_missing); } else { - error(errorNode, Diagnostics.Function_implementation_is_missing); + error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration); } } diff --git a/src/compiler/diagnosticInformationMap.generated.ts b/src/compiler/diagnosticInformationMap.generated.ts index 3301cd8da47..0c1d0ec74ab 100644 --- a/src/compiler/diagnosticInformationMap.generated.ts +++ b/src/compiler/diagnosticInformationMap.generated.ts @@ -279,7 +279,7 @@ module ts { Types_of_parameters_0_and_1_are_incompatible_Colon: { code: -9999999, category: DiagnosticCategory.Error, key: "Types of parameters '{0}' and '{1}' are incompatible:" }, Unknown_identifier_0: { code: -9999999, category: DiagnosticCategory.Error, key: "Unknown identifier '{0}'." }, Property_0_is_inaccessible: { code: -9999999, category: DiagnosticCategory.Error, key: "Property '{0}' is inaccessible." }, - Function_implementation_is_missing: { code: -9999999, category: DiagnosticCategory.Error, key: "Function implementation is missing." }, + Function_implementation_is_missing_or_not_immediately_following_the_declaration: { code: -9999999, category: DiagnosticCategory.Error, key: "Function implementation is missing or not immediately following the declaration." }, Property_0_of_type_1_is_not_assignable_to_string_index_type_2: { code: -9999999, category: DiagnosticCategory.Error, key: "Property '{0}' of type '{1}' is not assignable to string index type '{2}'." }, Property_0_of_type_1_is_not_assignable_to_numeric_index_type_2: { code: -9999999, category: DiagnosticCategory.Error, key: "Property '{0}' of type '{1}' is not assignable to numeric index type '{2}'." }, Numeric_index_type_0_is_not_assignable_to_string_index_type_1: { code: -9999999, category: DiagnosticCategory.Error, key: "Numeric index type '{0}' is not assignable to string index type '{1}'." }, diff --git a/src/compiler/diagnosticMessages.json b/src/compiler/diagnosticMessages.json index f9fdf66639e..35c2734c1d2 100644 --- a/src/compiler/diagnosticMessages.json +++ b/src/compiler/diagnosticMessages.json @@ -1132,7 +1132,7 @@ "category": "Error", "code": -9999999 }, - "Function implementation is missing.": { + "Function implementation is missing or not immediately following the declaration.": { "category": "Error", "code": -9999999 }, diff --git a/tests/baselines/reference/ClassDeclaration10.errors.txt b/tests/baselines/reference/ClassDeclaration10.errors.txt index b14c22d1b63..be26c1d5b47 100644 --- a/tests/baselines/reference/ClassDeclaration10.errors.txt +++ b/tests/baselines/reference/ClassDeclaration10.errors.txt @@ -5,5 +5,5 @@ !!! Constructor implementation is missing. foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/ClassDeclaration14.errors.txt b/tests/baselines/reference/ClassDeclaration14.errors.txt index be56741d656..cf181a7eb8b 100644 --- a/tests/baselines/reference/ClassDeclaration14.errors.txt +++ b/tests/baselines/reference/ClassDeclaration14.errors.txt @@ -2,7 +2,7 @@ class C { foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. constructor(); ~~~~~~~~~~~~~~ !!! Constructor implementation is missing. diff --git a/tests/baselines/reference/ClassDeclaration15.errors.txt b/tests/baselines/reference/ClassDeclaration15.errors.txt index de98a14880d..08c33f18758 100644 --- a/tests/baselines/reference/ClassDeclaration15.errors.txt +++ b/tests/baselines/reference/ClassDeclaration15.errors.txt @@ -2,6 +2,6 @@ class C { foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. constructor() { } } \ No newline at end of file diff --git a/tests/baselines/reference/ClassDeclaration25.errors.txt b/tests/baselines/reference/ClassDeclaration25.errors.txt index 2d86bd80fa6..3a73349506e 100644 --- a/tests/baselines/reference/ClassDeclaration25.errors.txt +++ b/tests/baselines/reference/ClassDeclaration25.errors.txt @@ -6,9 +6,9 @@ class List implements IList { data(): U; ~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. next(): string; ~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/ClassDeclaration9.errors.txt b/tests/baselines/reference/ClassDeclaration9.errors.txt index f8d51d26b4b..03813d14683 100644 --- a/tests/baselines/reference/ClassDeclaration9.errors.txt +++ b/tests/baselines/reference/ClassDeclaration9.errors.txt @@ -2,5 +2,5 @@ class C { foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/FunctionDeclaration3.errors.txt b/tests/baselines/reference/FunctionDeclaration3.errors.txt index c5a553ed9a4..40a51283449 100644 --- a/tests/baselines/reference/FunctionDeclaration3.errors.txt +++ b/tests/baselines/reference/FunctionDeclaration3.errors.txt @@ -1,4 +1,4 @@ ==== tests/cases/compiler/FunctionDeclaration3.ts (1 errors) ==== function foo(); ~~~ -!!! Function implementation is missing. \ No newline at end of file +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/FunctionDeclaration7.errors.txt b/tests/baselines/reference/FunctionDeclaration7.errors.txt index 8c7ae6f8bf3..fcc48feb2d8 100644 --- a/tests/baselines/reference/FunctionDeclaration7.errors.txt +++ b/tests/baselines/reference/FunctionDeclaration7.errors.txt @@ -2,5 +2,5 @@ module M { function foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.errors.txt b/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.errors.txt index 1a4eaf30392..fda1cca3d8e 100644 --- a/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.errors.txt +++ b/tests/baselines/reference/assignmentCompatFunctionsWithOptionalArgs.errors.txt @@ -1,7 +1,7 @@ ==== tests/cases/compiler/assignmentCompatFunctionsWithOptionalArgs.ts (3 errors) ==== function foo(x: { id: number; name?: string; }): void; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. foo({ id: 1234 }); // Ok foo({ id: 1234, name: "hello" }); // Ok foo({ id: 1234, name: false }); // Error, name of wrong type diff --git a/tests/baselines/reference/callOverloads1.errors.txt b/tests/baselines/reference/callOverloads1.errors.txt index 06aa8e6eeb7..7826219c513 100644 --- a/tests/baselines/reference/callOverloads1.errors.txt +++ b/tests/baselines/reference/callOverloads1.errors.txt @@ -9,7 +9,7 @@ function Foo(); // error ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Duplicate identifier 'Foo'. function F1(s:string); diff --git a/tests/baselines/reference/callOverloads2.errors.txt b/tests/baselines/reference/callOverloads2.errors.txt index 1649729048c..a715c13401e 100644 --- a/tests/baselines/reference/callOverloads2.errors.txt +++ b/tests/baselines/reference/callOverloads2.errors.txt @@ -22,7 +22,7 @@ function Goo(s:string); // error - no implementation ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. declare function Gar(s:String); // expect no error diff --git a/tests/baselines/reference/callOverloads3.errors.txt b/tests/baselines/reference/callOverloads3.errors.txt index eef63a64807..e6b7fecb59f 100644 --- a/tests/baselines/reference/callOverloads3.errors.txt +++ b/tests/baselines/reference/callOverloads3.errors.txt @@ -5,7 +5,7 @@ !!! Cannot find name 'Foo'. function Foo(s:string):Foo; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Cannot find name 'Foo'. class Foo { diff --git a/tests/baselines/reference/callOverloads4.errors.txt b/tests/baselines/reference/callOverloads4.errors.txt index 053305c3657..5fafef84f4c 100644 --- a/tests/baselines/reference/callOverloads4.errors.txt +++ b/tests/baselines/reference/callOverloads4.errors.txt @@ -5,7 +5,7 @@ !!! Cannot find name 'Foo'. function Foo(s:string):Foo; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Cannot find name 'Foo'. class Foo { diff --git a/tests/baselines/reference/callOverloads5.errors.txt b/tests/baselines/reference/callOverloads5.errors.txt index e7ccb6c5a08..7df261b7e0c 100644 --- a/tests/baselines/reference/callOverloads5.errors.txt +++ b/tests/baselines/reference/callOverloads5.errors.txt @@ -4,7 +4,7 @@ !!! Cannot find name 'Foo'. function Foo(s:string):Foo; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Cannot find name 'Foo'. class Foo { diff --git a/tests/baselines/reference/classOverloadForFunction2.errors.txt b/tests/baselines/reference/classOverloadForFunction2.errors.txt index be4ce08a9e5..3d73a8bb3f3 100644 --- a/tests/baselines/reference/classOverloadForFunction2.errors.txt +++ b/tests/baselines/reference/classOverloadForFunction2.errors.txt @@ -1,7 +1,7 @@ ==== tests/cases/compiler/classOverloadForFunction2.ts (2 errors) ==== function bar(): string; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. class bar {} ~~~ !!! Duplicate identifier 'bar'. \ No newline at end of file diff --git a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.errors.txt b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.errors.txt index 08aaa1239eb..9d4c0588e63 100644 --- a/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.errors.txt +++ b/tests/baselines/reference/classWithOverloadImplementationOfWrongName2.errors.txt @@ -6,5 +6,5 @@ !!! Function implementation name must be 'foo'. foo(x): number; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/crashOnMethodSignatures.errors.txt b/tests/baselines/reference/crashOnMethodSignatures.errors.txt index f7b02a2bb4d..014700b8135 100644 --- a/tests/baselines/reference/crashOnMethodSignatures.errors.txt +++ b/tests/baselines/reference/crashOnMethodSignatures.errors.txt @@ -2,6 +2,6 @@ class A { a(completed: () => any): void; ~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/dottedModuleName.errors.txt b/tests/baselines/reference/dottedModuleName.errors.txt index 5a2c9753257..7308aa980f7 100644 --- a/tests/baselines/reference/dottedModuleName.errors.txt +++ b/tests/baselines/reference/dottedModuleName.errors.txt @@ -5,7 +5,7 @@ ~~ !!! Block or ';' expected. ~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~ !!! Cannot find name 'x'. export module X.Y.Z { diff --git a/tests/baselines/reference/externModule.errors.txt b/tests/baselines/reference/externModule.errors.txt index f7e4795e6b8..613f6d9f8d7 100644 --- a/tests/baselines/reference/externModule.errors.txt +++ b/tests/baselines/reference/externModule.errors.txt @@ -15,10 +15,10 @@ !!! Cannot compile external modules unless the '--module' flag is provided. public getDay():number; ~~~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. public getXDate():number; ~~~~~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. // etc. // Called as a function @@ -38,7 +38,7 @@ static parse(string: string): number; ~~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. static UTC(year: number, month: number): number; static UTC(year: number, month: number, date: number): number; static UTC(year: number, month: number, date: number, hours: number): number; @@ -46,11 +46,11 @@ static UTC(year: number, month: number, date: number, hours: number, minutes: number, seconds: number): number; static UTC(year: number, month: number, date: number, hours: number, minutes: number, seconds: number, ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ms: number): number; static now(): number; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } } ~ diff --git a/tests/baselines/reference/functionOverloadImplementationOfWrongName2.errors.txt b/tests/baselines/reference/functionOverloadImplementationOfWrongName2.errors.txt index a5216bebb40..c656065b375 100644 --- a/tests/baselines/reference/functionOverloadImplementationOfWrongName2.errors.txt +++ b/tests/baselines/reference/functionOverloadImplementationOfWrongName2.errors.txt @@ -5,4 +5,4 @@ !!! Function implementation name must be 'foo'. function foo(x, y); ~~~ -!!! Function implementation is missing. \ No newline at end of file +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/functionOverloads1.errors.txt b/tests/baselines/reference/functionOverloads1.errors.txt index 71532313f44..610363c772f 100644 --- a/tests/baselines/reference/functionOverloads1.errors.txt +++ b/tests/baselines/reference/functionOverloads1.errors.txt @@ -1,6 +1,6 @@ ==== tests/cases/compiler/functionOverloads1.ts (1 errors) ==== function foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. 1+1; function foo():string { return "a" } \ No newline at end of file diff --git a/tests/baselines/reference/functionOverloads3.errors.txt b/tests/baselines/reference/functionOverloads3.errors.txt index 79fca9f342c..b153d81c109 100644 --- a/tests/baselines/reference/functionOverloads3.errors.txt +++ b/tests/baselines/reference/functionOverloads3.errors.txt @@ -1,4 +1,4 @@ ==== tests/cases/compiler/functionOverloads3.ts (1 errors) ==== function foo():string; ~~~ -!!! Function implementation is missing. \ No newline at end of file +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/functionOverloadsOutOfOrder.errors.txt b/tests/baselines/reference/functionOverloadsOutOfOrder.errors.txt index 977d160a45a..c5cfcb2ac73 100644 --- a/tests/baselines/reference/functionOverloadsOutOfOrder.errors.txt +++ b/tests/baselines/reference/functionOverloadsOutOfOrder.errors.txt @@ -6,7 +6,7 @@ } private foo(s: string): string; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } class e { @@ -16,5 +16,5 @@ private foo(s: string): string; private foo(n: number): string; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/incorrectClassOverloadChain.errors.txt b/tests/baselines/reference/incorrectClassOverloadChain.errors.txt index 6c12e650d02..c6a4361b56e 100644 --- a/tests/baselines/reference/incorrectClassOverloadChain.errors.txt +++ b/tests/baselines/reference/incorrectClassOverloadChain.errors.txt @@ -3,6 +3,6 @@ foo(): string; foo(x): number; ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. x = 1; } \ No newline at end of file diff --git a/tests/baselines/reference/indexer2A.errors.txt b/tests/baselines/reference/indexer2A.errors.txt index 25d9145a11f..59575b3ef5b 100644 --- a/tests/baselines/reference/indexer2A.errors.txt +++ b/tests/baselines/reference/indexer2A.errors.txt @@ -4,7 +4,7 @@ // Decided to enforce a semicolon after declarations hasOwnProperty(objectId: number): boolean ~~~~~~~~~~~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. [objectId: number]: IHeapObjectProperty[] } var directChildrenMap = {}; \ No newline at end of file diff --git a/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.errors.txt b/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.errors.txt index 6c1c18c3216..69fc3e37231 100644 --- a/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.errors.txt +++ b/tests/baselines/reference/memberFunctionOverloadMixingStaticAndInstance.errors.txt @@ -3,7 +3,7 @@ foo(); static foo(); // error ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Function overload must not be static. } @@ -12,7 +12,7 @@ static foo(); foo(); // error ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Function overload must be static. } @@ -21,7 +21,7 @@ foo(x: T); static foo(x: number); // error ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Function overload must not be static. } @@ -30,7 +30,7 @@ static foo(x: number); foo(x: T); // error ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~~~ !!! Function overload must be static. } \ No newline at end of file diff --git a/tests/baselines/reference/objectTypesWithOptionalProperties2.errors.txt b/tests/baselines/reference/objectTypesWithOptionalProperties2.errors.txt index ee417a928e5..75e3b2efc8e 100644 --- a/tests/baselines/reference/objectTypesWithOptionalProperties2.errors.txt +++ b/tests/baselines/reference/objectTypesWithOptionalProperties2.errors.txt @@ -24,7 +24,7 @@ ~ !!! Unexpected token. A constructor, method, accessor, or property was expected. ~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } interface I2 { @@ -42,7 +42,7 @@ ~ !!! Unexpected token. A constructor, method, accessor, or property was expected. ~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } diff --git a/tests/baselines/reference/parserClassDeclaration10.errors.txt b/tests/baselines/reference/parserClassDeclaration10.errors.txt index 10ef6a300a5..050ef3d24ad 100644 --- a/tests/baselines/reference/parserClassDeclaration10.errors.txt +++ b/tests/baselines/reference/parserClassDeclaration10.errors.txt @@ -5,5 +5,5 @@ !!! Constructor implementation is missing. foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/parserClassDeclaration14.errors.txt b/tests/baselines/reference/parserClassDeclaration14.errors.txt index dbc94ceb554..749e66b8aef 100644 --- a/tests/baselines/reference/parserClassDeclaration14.errors.txt +++ b/tests/baselines/reference/parserClassDeclaration14.errors.txt @@ -2,7 +2,7 @@ class C { foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. constructor(); ~~~~~~~~~~~~~~ !!! Constructor implementation is missing. diff --git a/tests/baselines/reference/parserClassDeclaration15.errors.txt b/tests/baselines/reference/parserClassDeclaration15.errors.txt index 45bc3398e88..84a9840a0b4 100644 --- a/tests/baselines/reference/parserClassDeclaration15.errors.txt +++ b/tests/baselines/reference/parserClassDeclaration15.errors.txt @@ -2,6 +2,6 @@ class C { foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. constructor() { } } \ No newline at end of file diff --git a/tests/baselines/reference/parserClassDeclaration25.errors.txt b/tests/baselines/reference/parserClassDeclaration25.errors.txt index 3ac19df284c..14e581aaa21 100644 --- a/tests/baselines/reference/parserClassDeclaration25.errors.txt +++ b/tests/baselines/reference/parserClassDeclaration25.errors.txt @@ -6,9 +6,9 @@ class List implements IList { data(): U; ~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. next(): string; ~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/parserClassDeclaration9.errors.txt b/tests/baselines/reference/parserClassDeclaration9.errors.txt index f1e6ed44e3a..e23f6476433 100644 --- a/tests/baselines/reference/parserClassDeclaration9.errors.txt +++ b/tests/baselines/reference/parserClassDeclaration9.errors.txt @@ -2,5 +2,5 @@ class C { foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/parserEqualsGreaterThanAfterFunction1.errors.txt b/tests/baselines/reference/parserEqualsGreaterThanAfterFunction1.errors.txt index 7b9a64333b3..e3ff187a00e 100644 --- a/tests/baselines/reference/parserEqualsGreaterThanAfterFunction1.errors.txt +++ b/tests/baselines/reference/parserEqualsGreaterThanAfterFunction1.errors.txt @@ -3,4 +3,4 @@ ~~ !!! Identifier expected. -!!! Function implementation is missing. \ No newline at end of file +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/parserEqualsGreaterThanAfterFunction2.errors.txt b/tests/baselines/reference/parserEqualsGreaterThanAfterFunction2.errors.txt index c6efbe104db..24866e9e424 100644 --- a/tests/baselines/reference/parserEqualsGreaterThanAfterFunction2.errors.txt +++ b/tests/baselines/reference/parserEqualsGreaterThanAfterFunction2.errors.txt @@ -9,4 +9,4 @@ !!! ')' expected. -!!! Function implementation is missing. \ No newline at end of file +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt b/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt index d2079dfc867..452919e7bc6 100644 --- a/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt +++ b/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction1.errors.txt @@ -3,4 +3,4 @@ ~~ !!! Block or ';' expected. ~ -!!! Function implementation is missing. \ No newline at end of file +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt b/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt index 684fd861eb4..9063aa5f541 100644 --- a/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt +++ b/tests/baselines/reference/parserErrantEqualsGreaterThanAfterFunction2.errors.txt @@ -3,7 +3,7 @@ ~~ !!! Block or ';' expected. ~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. ~ !!! Cannot find name 'A'. ~ diff --git a/tests/baselines/reference/parserErrorRecovery_ParameterList6.errors.txt b/tests/baselines/reference/parserErrorRecovery_ParameterList6.errors.txt index 0ecdaaffb50..5ccacf77e46 100644 --- a/tests/baselines/reference/parserErrorRecovery_ParameterList6.errors.txt +++ b/tests/baselines/reference/parserErrorRecovery_ParameterList6.errors.txt @@ -6,7 +6,7 @@ ~ !!! Identifier expected. ~~~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } ~ !!! Declaration or statement expected. \ No newline at end of file diff --git a/tests/baselines/reference/parserFunctionDeclaration3.errors.txt b/tests/baselines/reference/parserFunctionDeclaration3.errors.txt index 2042033edc1..0ba98e4e480 100644 --- a/tests/baselines/reference/parserFunctionDeclaration3.errors.txt +++ b/tests/baselines/reference/parserFunctionDeclaration3.errors.txt @@ -1,4 +1,4 @@ ==== tests/cases/conformance/parser/ecmascript5/FunctionDeclarations/parserFunctionDeclaration3.ts (1 errors) ==== function foo(); ~~~ -!!! Function implementation is missing. \ No newline at end of file +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/parserFunctionDeclaration7.errors.txt b/tests/baselines/reference/parserFunctionDeclaration7.errors.txt index 40ca2414e8e..661b497608e 100644 --- a/tests/baselines/reference/parserFunctionDeclaration7.errors.txt +++ b/tests/baselines/reference/parserFunctionDeclaration7.errors.txt @@ -2,5 +2,5 @@ module M { function foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. } \ No newline at end of file diff --git a/tests/baselines/reference/parserModuleDeclaration10.errors.txt b/tests/baselines/reference/parserModuleDeclaration10.errors.txt index e0186892703..d84c17e4313 100644 --- a/tests/baselines/reference/parserModuleDeclaration10.errors.txt +++ b/tests/baselines/reference/parserModuleDeclaration10.errors.txt @@ -1,8 +1,8 @@ ==== tests/cases/conformance/parser/ecmascript5/ModuleDeclarations/parserModuleDeclaration10.ts (2 errors) ==== function data(): string; ~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. function next(): string; ~~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. \ No newline at end of file diff --git a/tests/baselines/reference/parserSkippedTokens16.errors.txt b/tests/baselines/reference/parserSkippedTokens16.errors.txt index 9d696386221..6416bc999a9 100644 --- a/tests/baselines/reference/parserSkippedTokens16.errors.txt +++ b/tests/baselines/reference/parserSkippedTokens16.errors.txt @@ -12,7 +12,7 @@ !!! Invalid character. ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. 4+:5 ~ !!! Expression expected. diff --git a/tests/baselines/reference/staticClassMemberError.errors.txt b/tests/baselines/reference/staticClassMemberError.errors.txt index 65b2a0b7aa1..8594a29a2d8 100644 --- a/tests/baselines/reference/staticClassMemberError.errors.txt +++ b/tests/baselines/reference/staticClassMemberError.errors.txt @@ -11,7 +11,7 @@ // just want to make sure this one doesn't crash the compiler function Foo(); ~~~ -!!! Function implementation is missing. +!!! Function implementation is missing or not immediately following the declaration. class Foo { ~~~ !!! Duplicate identifier 'Foo'.