|
@@ -487,6 +487,7 @@ try
|
|
Common.raw_define com "haxe4";
|
|
Common.raw_define com "haxe4";
|
|
Common.define_value com Define.Haxe (s_version false);
|
|
Common.define_value com Define.Haxe (s_version false);
|
|
Common.define_value com Define.Dce "std";
|
|
Common.define_value com Define.Dce "std";
|
|
|
|
+ com.info <- (fun msg p -> message ctx (CMInfo(msg,p)));
|
|
com.warning <- (fun msg p -> message ctx (CMWarning(msg,p)));
|
|
com.warning <- (fun msg p -> message ctx (CMWarning(msg,p)));
|
|
com.error <- error ctx;
|
|
com.error <- error ctx;
|
|
if CompilationServer.runs() then com.run_command <- run_command ctx;
|
|
if CompilationServer.runs() then com.run_command <- run_command ctx;
|
|
@@ -588,7 +589,7 @@ try
|
|
com.debug <- true;
|
|
com.debug <- true;
|
|
),"","add debug information to the compiled code");
|
|
),"","add debug information to the compiled code");
|
|
("Miscellaneous",["--version"],["-version"],Arg.Unit (fun() ->
|
|
("Miscellaneous",["--version"],["-version"],Arg.Unit (fun() ->
|
|
- message ctx (CMInfo(s_version true,null_pos));
|
|
|
|
|
|
+ com.info (s_version true) null_pos;
|
|
did_something := true;
|
|
did_something := true;
|
|
),"","print version and exit");
|
|
),"","print version and exit");
|
|
("Miscellaneous", ["-h";"--help"], ["-help"], Arg.Unit (fun () ->
|
|
("Miscellaneous", ["-h";"--help"], ["-help"], Arg.Unit (fun () ->
|
|
@@ -1021,7 +1022,7 @@ with
|
|
| Failure msg when not (is_debug_run()) ->
|
|
| Failure msg when not (is_debug_run()) ->
|
|
error ctx ("Error: " ^ msg) null_pos
|
|
error ctx ("Error: " ^ msg) null_pos
|
|
| HelpMessage msg ->
|
|
| HelpMessage msg ->
|
|
- message ctx (CMInfo(msg,null_pos))
|
|
|
|
|
|
+ com.info msg null_pos
|
|
| DisplayException(DisplayHover _ | DisplayPositions _ | DisplayFields _ | DisplayPackage _ | DisplaySignatures _ as de) when ctx.com.json_out <> None ->
|
|
| DisplayException(DisplayHover _ | DisplayPositions _ | DisplayFields _ | DisplayPackage _ | DisplaySignatures _ as de) when ctx.com.json_out <> None ->
|
|
begin
|
|
begin
|
|
DisplayPosition.display_position#reset;
|
|
DisplayPosition.display_position#reset;
|