Skip to content

Commit e951455

Browse files
postamaRyanCavanaugh
authored andcommitted
Update misspelling 'identifer' to 'identifier' (microsoft#30894)
* fix typo - identifer to identifier * fix typo - identifer to identifier
1 parent 4574c7a commit e951455

13 files changed

+71
-71
lines changed

lib/tsserver.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -33624,7 +33624,7 @@ var ts;
3362433624
return type;
3362533625
}
3362633626
// A reserved member name starts with two underscores, but the third character cannot be an underscore
33627-
// or the @ symbol. A third underscore indicates an escaped form of an identifer that started
33627+
// or the @ symbol. A third underscore indicates an escaped form of an identifier that started
3362833628
// with at least two underscores. The @ character indicates that the name is denoted by a well known ES
3362933629
// Symbol instance.
3363033630
function isReservedMemberName(name) {
@@ -99911,9 +99911,9 @@ var ts;
9991199911
|| ts.isKnownSymbol(symbol)) {
9991299912
return undefined;
9991399913
}
99914-
var validIdentiferResult = { name: name, needsConvertPropertyAccess: false };
99914+
var validIdentifierResult = { name: name, needsConvertPropertyAccess: false };
9991599915
if (ts.isIdentifierText(name, target))
99916-
return validIdentiferResult;
99916+
return validIdentifierResult;
9991799917
switch (kind) {
9991899918
case 3 /* MemberLike */:
9991999919
return undefined;
@@ -99926,7 +99926,7 @@ var ts;
9992699926
return name.charCodeAt(0) === 32 /* space */ ? undefined : { name: name, needsConvertPropertyAccess: true };
9992799927
case 5 /* None */:
9992899928
case 4 /* String */:
99929-
return validIdentiferResult;
99929+
return validIdentifierResult;
9993099930
default:
9993199931
ts.Debug.assertNever(kind);
9993299932
}

lib/tsserverlibrary.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -33623,7 +33623,7 @@ var ts;
3362333623
return type;
3362433624
}
3362533625
// A reserved member name starts with two underscores, but the third character cannot be an underscore
33626-
// or the @ symbol. A third underscore indicates an escaped form of an identifer that started
33626+
// or the @ symbol. A third underscore indicates an escaped form of an identifier that started
3362733627
// with at least two underscores. The @ character indicates that the name is denoted by a well known ES
3362833628
// Symbol instance.
3362933629
function isReservedMemberName(name) {
@@ -100250,9 +100250,9 @@ var ts;
100250100250
|| ts.isKnownSymbol(symbol)) {
100251100251
return undefined;
100252100252
}
100253-
var validIdentiferResult = { name: name, needsConvertPropertyAccess: false };
100253+
var validIdentifierResult = { name: name, needsConvertPropertyAccess: false };
100254100254
if (ts.isIdentifierText(name, target))
100255-
return validIdentiferResult;
100255+
return validIdentifierResult;
100256100256
switch (kind) {
100257100257
case 3 /* MemberLike */:
100258100258
return undefined;
@@ -100265,7 +100265,7 @@ var ts;
100265100265
return name.charCodeAt(0) === 32 /* space */ ? undefined : { name: name, needsConvertPropertyAccess: true };
100266100266
case 5 /* None */:
100267100267
case 4 /* String */:
100268-
return validIdentiferResult;
100268+
return validIdentifierResult;
100269100269
default:
100270100270
ts.Debug.assertNever(kind);
100271100271
}

lib/typescript.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -33614,7 +33614,7 @@ var ts;
3361433614
return type;
3361533615
}
3361633616
// A reserved member name starts with two underscores, but the third character cannot be an underscore
33617-
// or the @ symbol. A third underscore indicates an escaped form of an identifer that started
33617+
// or the @ symbol. A third underscore indicates an escaped form of an identifier that started
3361833618
// with at least two underscores. The @ character indicates that the name is denoted by a well known ES
3361933619
// Symbol instance.
3362033620
function isReservedMemberName(name) {
@@ -100241,9 +100241,9 @@ var ts;
100241100241
|| ts.isKnownSymbol(symbol)) {
100242100242
return undefined;
100243100243
}
100244-
var validIdentiferResult = { name: name, needsConvertPropertyAccess: false };
100244+
var validIdentifierResult = { name: name, needsConvertPropertyAccess: false };
100245100245
if (ts.isIdentifierText(name, target))
100246-
return validIdentiferResult;
100246+
return validIdentifierResult;
100247100247
switch (kind) {
100248100248
case 3 /* MemberLike */:
100249100249
return undefined;
@@ -100256,7 +100256,7 @@ var ts;
100256100256
return name.charCodeAt(0) === 32 /* space */ ? undefined : { name: name, needsConvertPropertyAccess: true };
100257100257
case 5 /* None */:
100258100258
case 4 /* String */:
100259-
return validIdentiferResult;
100259+
return validIdentifierResult;
100260100260
default:
100261100261
ts.Debug.assertNever(kind);
100262100262
}

lib/typescriptServices.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -33614,7 +33614,7 @@ var ts;
3361433614
return type;
3361533615
}
3361633616
// A reserved member name starts with two underscores, but the third character cannot be an underscore
33617-
// or the @ symbol. A third underscore indicates an escaped form of an identifer that started
33617+
// or the @ symbol. A third underscore indicates an escaped form of an identifier that started
3361833618
// with at least two underscores. The @ character indicates that the name is denoted by a well known ES
3361933619
// Symbol instance.
3362033620
function isReservedMemberName(name) {
@@ -100241,9 +100241,9 @@ var ts;
100241100241
|| ts.isKnownSymbol(symbol)) {
100242100242
return undefined;
100243100243
}
100244-
var validIdentiferResult = { name: name, needsConvertPropertyAccess: false };
100244+
var validIdentifierResult = { name: name, needsConvertPropertyAccess: false };
100245100245
if (ts.isIdentifierText(name, target))
100246-
return validIdentiferResult;
100246+
return validIdentifierResult;
100247100247
switch (kind) {
100248100248
case 3 /* MemberLike */:
100249100249
return undefined;
@@ -100256,7 +100256,7 @@ var ts;
100256100256
return name.charCodeAt(0) === 32 /* space */ ? undefined : { name: name, needsConvertPropertyAccess: true };
100257100257
case 5 /* None */:
100258100258
case 4 /* String */:
100259-
return validIdentiferResult;
100259+
return validIdentifierResult;
100260100260
default:
100261100261
ts.Debug.assertNever(kind);
100262100262
}

lib/typingsInstaller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33615,7 +33615,7 @@ var ts;
3361533615
return type;
3361633616
}
3361733617
// A reserved member name starts with two underscores, but the third character cannot be an underscore
33618-
// or the @ symbol. A third underscore indicates an escaped form of an identifer that started
33618+
// or the @ symbol. A third underscore indicates an escaped form of an identifier that started
3361933619
// with at least two underscores. The @ character indicates that the name is denoted by a well known ES
3362033620
// Symbol instance.
3362133621
function isReservedMemberName(name) {

src/compiler/checker.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2843,7 +2843,7 @@ namespace ts {
28432843
}
28442844

28452845
// A reserved member name starts with two underscores, but the third character cannot be an underscore
2846-
// or the @ symbol. A third underscore indicates an escaped form of an identifer that started
2846+
// or the @ symbol. A third underscore indicates an escaped form of an identifier that started
28472847
// with at least two underscores. The @ character indicates that the name is denoted by a well known ES
28482848
// Symbol instance.
28492849
function isReservedMemberName(name: __String) {

src/services/completions.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1912,8 +1912,8 @@ namespace ts.Completions {
19121912
return undefined;
19131913
}
19141914

1915-
const validIdentiferResult: CompletionEntryDisplayNameForSymbol = { name, needsConvertPropertyAccess: false };
1916-
if (isIdentifierText(name, target)) return validIdentiferResult;
1915+
const validIdentifierResult: CompletionEntryDisplayNameForSymbol = { name, needsConvertPropertyAccess: false };
1916+
if (isIdentifierText(name, target)) return validIdentifierResult;
19171917
switch (kind) {
19181918
case CompletionKind.MemberLike:
19191919
return undefined;
@@ -1926,7 +1926,7 @@ namespace ts.Completions {
19261926
return name.charCodeAt(0) === CharacterCodes.space ? undefined : { name, needsConvertPropertyAccess: true };
19271927
case CompletionKind.None:
19281928
case CompletionKind.String:
1929-
return validIdentiferResult;
1929+
return validIdentifierResult;
19301930
default:
19311931
Debug.assertNever(kind);
19321932
}

tests/baselines/reference/genericClassesRedeclaration.errors.txt

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
tests/cases/compiler/genericClassesRedeclaration.ts(16,11): error TS2300: Duplicate identifier 'StringHashTable'.
2-
tests/cases/compiler/genericClassesRedeclaration.ts(29,11): error TS2300: Duplicate identifier 'IdentiferNameHashTable'.
2+
tests/cases/compiler/genericClassesRedeclaration.ts(29,11): error TS2300: Duplicate identifier 'IdentifierNameHashTable'.
33
tests/cases/compiler/genericClassesRedeclaration.ts(42,9): error TS2374: Duplicate string index signature.
44
tests/cases/compiler/genericClassesRedeclaration.ts(55,11): error TS2300: Duplicate identifier 'StringHashTable'.
5-
tests/cases/compiler/genericClassesRedeclaration.ts(68,11): error TS2300: Duplicate identifier 'IdentiferNameHashTable'.
5+
tests/cases/compiler/genericClassesRedeclaration.ts(68,11): error TS2300: Duplicate identifier 'IdentifierNameHashTable'.
66

77

88
==== tests/cases/compiler/genericClassesRedeclaration.ts (5 errors) ====
@@ -36,9 +36,9 @@ tests/cases/compiler/genericClassesRedeclaration.ts(68,11): error TS2300: Duplic
3636
public lookup(key: string): T;
3737
public remove(key: string): void;
3838
}
39-
class IdentiferNameHashTable<T> extends StringHashTable<T> {
40-
~~~~~~~~~~~~~~~~~~~~~~
41-
!!! error TS2300: Duplicate identifier 'IdentiferNameHashTable'.
39+
class IdentifierNameHashTable<T> extends StringHashTable<T> {
40+
~~~~~~~~~~~~~~~~~~~~~~~
41+
!!! error TS2300: Duplicate identifier 'IdentifierNameHashTable'.
4242
public getAllKeys(): string[];
4343
public add(key: string, data: T): boolean;
4444
public addOrUpdate(key: string, data: T): boolean;
@@ -81,9 +81,9 @@ tests/cases/compiler/genericClassesRedeclaration.ts(68,11): error TS2300: Duplic
8181
public lookup(key: string): T;
8282
public remove(key: string): void;
8383
}
84-
class IdentiferNameHashTable<T> extends StringHashTable<T> {
85-
~~~~~~~~~~~~~~~~~~~~~~
86-
!!! error TS2300: Duplicate identifier 'IdentiferNameHashTable'.
84+
class IdentifierNameHashTable<T> extends StringHashTable<T> {
85+
~~~~~~~~~~~~~~~~~~~~~~~
86+
!!! error TS2300: Duplicate identifier 'IdentifierNameHashTable'.
8787
public getAllKeys(): string[];
8888
public add(key: string, data: T): boolean;
8989
public addOrUpdate(key: string, data: T): boolean;

tests/baselines/reference/genericClassesRedeclaration.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ declare module TypeScript {
2727
public lookup(key: string): T;
2828
public remove(key: string): void;
2929
}
30-
class IdentiferNameHashTable<T> extends StringHashTable<T> {
30+
class IdentifierNameHashTable<T> extends StringHashTable<T> {
3131
public getAllKeys(): string[];
3232
public add(key: string, data: T): boolean;
3333
public addOrUpdate(key: string, data: T): boolean;
@@ -66,7 +66,7 @@ declare module TypeScript {
6666
public lookup(key: string): T;
6767
public remove(key: string): void;
6868
}
69-
class IdentiferNameHashTable<T> extends StringHashTable<T> {
69+
class IdentifierNameHashTable<T> extends StringHashTable<T> {
7070
public getAllKeys(): string[];
7171
public add(key: string, data: T): boolean;
7272
public addOrUpdate(key: string, data: T): boolean;

0 commit comments

Comments
 (0)