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