You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -815,7 +819,7 @@ extern (C++) final class Module : Package
815
819
Module m = ppack ? ppack.isModule() : null;
816
820
if (m &&!isPackageFileName(m.srcfile))
817
821
{
818
-
.error(md.loc, "package name '%s' conflicts with usage as a module name in file %s", ppack.toPrettyChars(), m.srcfile.toChars());
822
+
eSink.error(md.loc, "package name '%s' conflicts with usage as a module name in file %s", ppack.toPrettyChars(), m.srcfile.toChars());
819
823
}
820
824
}
821
825
else
@@ -827,7 +831,7 @@ extern (C++) final class Module : Package
827
831
/* Check to see if module name is a valid identifier
828
832
*/
829
833
if (!Identifier.isValidIdentifier(this.ident.toChars()))
830
-
error(loc, "%s `%s` has non-identifier characters in filename, use module declaration instead", kind, toPrettyChars);
834
+
eSink.error(loc, "%s `%s` has non-identifier characters in filename, use module declaration instead", kind, toPrettyChars);
831
835
}
832
836
// Insert module into the symbol table
833
837
Dsymbol s = this;
@@ -880,11 +884,11 @@ extern (C++) final class Module : Package
880
884
if (Module mprev = prev.isModule())
881
885
{
882
886
if (!FileName.equals(srcname, mprev.srcfile.toChars()))
883
-
error(loc, "%s `%s` from file %s conflicts with another module %s from file %s", kind, toPrettyChars, srcname, mprev.toErrMsg(), mprev.srcfile.toChars());
887
+
eSink.error(loc, "%s `%s` from file %s conflicts with another module %s from file %s", kind, toPrettyChars, srcname, mprev.toErrMsg(), mprev.srcfile.toChars());
884
888
elseif (isRoot() && mprev.isRoot())
885
-
error(loc, "%s `%s` from file %s is specified twice on the command line", kind, toPrettyChars, srcname);
889
+
eSink.error(loc, "%s `%s` from file %s is specified twice on the command line", kind, toPrettyChars, srcname);
886
890
else
887
-
error(loc, "%s `%s` from file %s must be imported with 'import %s;'", kind, toPrettyChars, srcname, toPrettyChars());
891
+
eSink.error(loc, "%s `%s` from file %s must be imported with 'import %s;'", kind, toPrettyChars, srcname, toPrettyChars());
888
892
// https://issues.dlang.org/show_bug.cgi?id=14446
889
893
// Return previously parsed module to avoid AST duplication ICE.
890
894
return mprev;
@@ -895,7 +899,7 @@ extern (C++) final class Module : Package
895
899
if (isPackageFile)
896
900
amodules.push(this); // Add to global array of all modules
897
901
else
898
-
error(md ? md.loc : loc, "%s `%s` from file %s conflicts with package name %s", kind, toPrettyChars, srcname, pkg.toErrMsg());
902
+
eSink.error(md ? md.loc : loc, "%s `%s` from file %s conflicts with package name %s", kind, toPrettyChars, srcname, pkg.toErrMsg());
0 commit comments