|
@@ -21,6 +21,7 @@
|
|
|
|
|
|
open Globals
|
|
|
open Ast
|
|
|
+open Filename
|
|
|
open Type
|
|
|
open Typecore
|
|
|
open DisplayTypes.DisplayMode
|
|
@@ -348,7 +349,7 @@ let init_module_type ctx context_init do_init (decl,p) =
|
|
|
in
|
|
|
let check_path_display path p = match ctx.com.display.dms_kind with
|
|
|
(* We cannot use ctx.is_display_file because the import could come from an import.hx file. *)
|
|
|
- | DMDiagnostics b when (b || DisplayPosition.is_display_file p.pfile) && not (ExtString.String.ends_with p.pfile "import.hx") ->
|
|
|
+ | DMDiagnostics b when (b || DisplayPosition.is_display_file p.pfile) && Filename.basename p.pfile <> "import.hx" ->
|
|
|
ImportHandling.add_import_position ctx.com p path;
|
|
|
| DMStatistics ->
|
|
|
ImportHandling.add_import_position ctx.com p path;
|