File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments