src/Pure/ML/ml_compiler.ML
changeset 71675 55cb4271858b
parent 68821 877534be1930
child 71910 f8b0271cc744
equal deleted inserted replaced
71674:48ff625687f5 71675:55cb4271858b
    48         |> Position.of_properties)
    48         |> Position.of_properties)
    49   end;
    49   end;
    50 
    50 
    51 fun report_parse_tree redirect depth name_space parse_tree =
    51 fun report_parse_tree redirect depth name_space parse_tree =
    52   let
    52   let
    53     val is_visible =
    53     val reports_enabled =
    54       (case Context.get_generic_context () of
    54       (case Context.get_generic_context () of
    55         SOME context => Context_Position.is_visible_generic context
    55         SOME context => Context_Position.reports_enabled_generic context
    56       | NONE => true);
    56       | NONE => Context_Position.pide_reports ());
    57     fun is_reported pos = is_visible andalso Position.is_reported pos;
    57     fun is_reported pos = reports_enabled andalso Position.is_reported pos;
    58 
    58 
    59 
    59 
    60     (* syntax reports *)
    60     (* syntax reports *)
    61 
    61 
    62     fun reported_types loc types =
    62     fun reported_types loc types =