Skip to content

Commit 05b1dff

Browse files
committed
changed name of checkForMissingPrefix to checkAndReportErrorForMissingPrefix
1 parent dc42668 commit 05b1dff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/compiler/checker.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ namespace ts {
740740

741741
if (!result) {
742742
if (nameNotFoundMessage) {
743-
if (!checkForMissingPrefix(errorLocation, name, nameArg)) {
743+
if (!checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg)) {
744744
error(errorLocation, nameNotFoundMessage, typeof nameArg === "string" ? nameArg : declarationNameToString(nameArg));
745745
}
746746
}
@@ -779,10 +779,11 @@ namespace ts {
779779
return result;
780780
}
781781

782-
function checkForMissingPrefix(errorLocation: Node, name: string, nameArg: string | Identifier): boolean {
782+
function checkAndReportErrorForMissingPrefix(errorLocation: Node, name: string, nameArg: string | Identifier): boolean {
783783
if (!errorLocation || (errorLocation.kind === SyntaxKind.Identifier && (isTypeReferenceIdentifier(<Identifier>errorLocation)) || isInTypeQuery(errorLocation))) {
784784
return false;
785785
}
786+
786787
const container = getThisContainer(errorLocation, /* includeArrowFunctions */ true);
787788
let location = container;
788789
while (location) {

0 commit comments

Comments
 (0)