Update misspelling 'identifer' to 'identifier' (#30894)

* fix typo - identifer to identifier

* fix typo - identifer to identifier
This commit is contained in:
Adam Postma
2019-04-12 14:29:00 -06:00
committed by Ryan Cavanaugh
parent 4574c7a375
commit e951455215
13 changed files with 71 additions and 71 deletions

View File

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

View File

@@ -1912,8 +1912,8 @@ namespace ts.Completions {
return undefined;
}
const validIdentiferResult: CompletionEntryDisplayNameForSymbol = { name, needsConvertPropertyAccess: false };
if (isIdentifierText(name, target)) return validIdentiferResult;
const validIdentifierResult: CompletionEntryDisplayNameForSymbol = { name, needsConvertPropertyAccess: false };
if (isIdentifierText(name, target)) return validIdentifierResult;
switch (kind) {
case CompletionKind.MemberLike:
return undefined;
@@ -1926,7 +1926,7 @@ namespace ts.Completions {
return name.charCodeAt(0) === CharacterCodes.space ? undefined : { name, needsConvertPropertyAccess: true };
case CompletionKind.None:
case CompletionKind.String:
return validIdentiferResult;
return validIdentifierResult;
default:
Debug.assertNever(kind);
}