Skip to content

Commit ce324d3

Browse files
committed
[Diagnostics] Missing member diagnostic associated with module should point to name
1 parent b748920 commit ce324d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: lib/Sema/CSDiagnostics.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -3317,8 +3317,8 @@ bool MissingMemberFailure::diagnoseAsError() {
33173317
emitBasicError(baseType);
33183318
}
33193319
} else if (auto moduleTy = baseType->getAs<ModuleType>()) {
3320-
emitDiagnostic(diag::no_member_of_module, moduleTy->getModule()->getName(),
3321-
getName())
3320+
emitDiagnosticAt(baseExpr->getLoc(), diag::no_member_of_module,
3321+
moduleTy->getModule()->getName(), getName())
33223322
.highlight(getSourceRange())
33233323
.highlight(nameLoc.getSourceRange());
33243324
return true;

0 commit comments

Comments
 (0)