Skip to content

Commit a62b47e

Browse files
committed
addressed CR feedback: changed error message
1 parent 59b1e46 commit a62b47e

File tree

44 files changed

+56
-56
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+56
-56
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4909,7 +4909,7 @@ module ts {
49094909
error(errorNode, Diagnostics.Constructor_implementation_is_missing);
49104910
}
49114911
else {
4912-
error(errorNode, Diagnostics.Function_implementation_is_missing);
4912+
error(errorNode, Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration);
49134913
}
49144914
}
49154915

src/compiler/diagnosticInformationMap.generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ module ts {
279279
Types_of_parameters_0_and_1_are_incompatible_Colon: { code: -9999999, category: DiagnosticCategory.Error, key: "Types of parameters '{0}' and '{1}' are incompatible:" },
280280
Unknown_identifier_0: { code: -9999999, category: DiagnosticCategory.Error, key: "Unknown identifier '{0}'." },
281281
Property_0_is_inaccessible: { code: -9999999, category: DiagnosticCategory.Error, key: "Property '{0}' is inaccessible." },
282-
Function_implementation_is_missing: { code: -9999999, category: DiagnosticCategory.Error, key: "Function implementation is missing." },
282+
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." },
283283
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}'." },
284284
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}'." },
285285
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}'." },

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@
11321132
"category": "Error",
11331133
"code": -9999999
11341134
},
1135-
"Function implementation is missing.": {
1135+
"Function implementation is missing or not immediately following the declaration.": {
11361136
"category": "Error",
11371137
"code": -9999999
11381138
},

tests/baselines/reference/ClassDeclaration10.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
!!! Constructor implementation is missing.
66
foo();
77
~~~
8-
!!! Function implementation is missing.
8+
!!! Function implementation is missing or not immediately following the declaration.
99
}

tests/baselines/reference/ClassDeclaration14.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
class C {
33
foo();
44
~~~
5-
!!! Function implementation is missing.
5+
!!! Function implementation is missing or not immediately following the declaration.
66
constructor();
77
~~~~~~~~~~~~~~
88
!!! Constructor implementation is missing.

tests/baselines/reference/ClassDeclaration15.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
class C {
33
foo();
44
~~~
5-
!!! Function implementation is missing.
5+
!!! Function implementation is missing or not immediately following the declaration.
66
constructor() { }
77
}

tests/baselines/reference/ClassDeclaration25.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
class List<U> implements IList<U> {
77
data(): U;
88
~~~~
9-
!!! Function implementation is missing.
9+
!!! Function implementation is missing or not immediately following the declaration.
1010
next(): string;
1111
~~~~
12-
!!! Function implementation is missing.
12+
!!! Function implementation is missing or not immediately following the declaration.
1313
}
1414

tests/baselines/reference/ClassDeclaration9.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
class C {
33
foo();
44
~~~
5-
!!! Function implementation is missing.
5+
!!! Function implementation is missing or not immediately following the declaration.
66
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
==== tests/cases/compiler/FunctionDeclaration3.ts (1 errors) ====
22
function foo();
33
~~~
4-
!!! Function implementation is missing.
4+
!!! Function implementation is missing or not immediately following the declaration.

tests/baselines/reference/FunctionDeclaration7.errors.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
module M {
33
function foo();
44
~~~
5-
!!! Function implementation is missing.
5+
!!! Function implementation is missing or not immediately following the declaration.
66
}

0 commit comments

Comments
 (0)