Cobol_typeck.Conditionval add_implied_relop : abbrev_implied_parts -> abbrev_implied_partstype abbrev_condition_expansion_state = {subject : Cobol_procedure.Types.expr Cobol_common.Srcloc.TYPES.with_loc option;relop : Cobol_ptree.relop Cobol_common.Srcloc.TYPES.with_loc option;unused : abbrev_implied_parts;changed_in_parens : abbrev_implied_parts;}abbrev_condition_expansion_state is used internally by expand_abbrev_cond to remember the previous subject and relational operator that are implied in the abbreviation.
val no_subject_state : abbrev_condition_expansion_stateval new_state_with_subject :
Cobol_procedure.Types.expr Cobol_common.Srcloc.TYPES.with_loc ->
abbrev_condition_expansion_stateval state_with_relop :
abbrev_condition_expansion_state ->
Cobol_ptree.relop Cobol_common.Srcloc.TYPES.with_loc ->
abbrev_condition_expansion_stateval disambiguate_object_vs_bool_expr :
Cobol_procedure.Types.expr ->
object_bool_expr_disambiguationval warn_before_state_reset :
abbrev_condition_expansion_state ->
Cobol_typeck__.Typeck_diagnostics.diagnostic listval use_and_reset_subject :
f:
(Cobol_procedure.Types.expr Cobol_common.Srcloc.TYPES.with_loc ->
('a, unit) Stdlib.result Cobol_common__Srcloc.TYPES.with_loc) ->
missing_subject_error:Cobol_typeck__.Typeck_condition_diagnostics.error ->
abbrev_condition_expansion_state ->
Cobol_typeck__.Typeck_procedure_monad.env ->
Cobol_typeck__.Typeck_outputs.references_acc ->
(('a, unit) Stdlib.result Cobol_common__Srcloc.TYPES.with_loc
* abbrev_condition_expansion_state)
* Cobol_typeck__.Typeck_outputs.references_accval expand_abbrev_cond :
Cobol_ptree.condition Cobol_common.Srcloc.TYPES.with_loc ->
abbrev_condition_expansion_state ->
Cobol_typeck__.Typeck_procedure_monad.env ->
Cobol_typeck__.Typeck_outputs.references_acc ->
(Cobol_procedure.Types.condition Cobol_procedure.Types.or_error
Cobol_common.Srcloc.TYPES.with_loc
* abbrev_condition_expansion_state)
* Cobol_typeck__.Typeck_outputs.references_accval expand_condition :
Cobol_ptree.condition Cobol_common.Srcloc.TYPES.with_loc ->
Cobol_typeck__.Typeck_procedure_monad.env ->
Cobol_typeck__.Typeck_outputs.references_acc ->
Cobol_procedure.Types.condition Cobol_procedure.Types.or_error
Cobol_common.Srcloc.TYPES.with_loc
* Cobol_typeck__.Typeck_outputs.references_accval expand_selection_subject :
Cobol_ptree.selection_subject Cobol_common.Srcloc.TYPES.with_loc ->
Cobol_typeck__.Typeck_procedure_monad.env ->
Cobol_typeck__.Typeck_outputs.references_acc ->
Cobol_procedure.Types.selection_subject Cobol_procedure.Types.or_error
Cobol_common.Srcloc.TYPES.with_loc
* Cobol_typeck__.Typeck_outputs.references_accval expand_selection_object :
Cobol_procedure.Types.selection_subject Cobol_common__Srcloc.TYPES.with_loc ->
Cobol_ptree.selection_object Cobol_common.Srcloc.TYPES.with_loc ->
Cobol_typeck__.Typeck_procedure_monad.env ->
Cobol_typeck__.Typeck_outputs.references_acc ->
Cobol_procedure.Types.selection_object Cobol_procedure.Types.or_error
Cobol_common.Srcloc.TYPES.with_loc
* Cobol_typeck__.Typeck_outputs.references_accval expand_selection_subjects :
Cobol_ptree.selection_subject Cobol_common.Srcloc.TYPES.with_loc list ->
Cobol_typeck__.Typeck_procedure_monad.env ->
Cobol_typeck__.Typeck_outputs.references_acc ->
Cobol_procedure.Types.selection_subject Cobol_procedure.Types.or_error
Cobol_common.Srcloc.TYPES.with_loc
list
* Cobol_typeck__.Typeck_outputs.references_accval expand_selection_objects :
(Cobol_procedure.Types.selection_subject, unit) Stdlib.result
Cobol_common.Srcloc.TYPES.with_loc
list ->
Cobol_ptree.selection_object Cobol_common__Srcloc.TYPES.with_loc list ->
Cobol_typeck__.Typeck_procedure_monad.env ->
Cobol_typeck__.Typeck_outputs.references_acc ->
Cobol_procedure.Types.selection_object Cobol_procedure.Types.or_error
Cobol_common.Srcloc.TYPES.with_loc
list
* Cobol_typeck__.Typeck_outputs.references_accExpands one list of selection objects of a WHEN clause, given the expanded EVALUATE subjects. Objects are ill-typed when their subject is ill-typed (without any further error), or when there is no corresponding subject.