Module Cobol_typeck.References

module Resolver_map = Cobol_unit.Resolver_map
val empty_accumulator : Cobol_typeck__.Typeck_outputs.references_acc
val error : Cobol_typeck__.Typeck_outputs.references_acc -> Cobol_typeck__.Typeck_procedure_diagnostics.error -> Cobol_typeck__.Typeck_outputs.references_acc
val register_data_qualref : loc:Cobol_common.Srcloc.TYPES.srcloc -> Cobol_unit.Qual.MAP.key -> Cobol_typeck__.Typeck_outputs.references_acc -> Cobol_typeck__.Typeck_outputs.references_acc
val register_qualifiers : data_definitions:Cobol_unit.Types.data_definitions -> ?full_qn:Cobol_ptree.qualname -> Cobol_ptree.qualname -> Cobol_typeck__.Typeck_outputs.references_acc -> Cobol_typeck__.Typeck_outputs.references_acc

Registers the references to the qualifiers of qn, e.g, A in B IN A (see Typeck_outputs.references_in_unit). Qualifiers are looked up in full_qn, the fully qualified name of the item that qn references, if known; otherwise, they are resolved on their own, and silently ignored if this resolution fails: only qn needs to be unambiguous.

val resolve_data_qualname : data_definitions:Cobol_unit.Types.data_definitions -> ?assume_partial_data_definitions:bool -> Cobol_ptree.qualname Cobol_common__Srcloc.TYPES.with_loc -> Cobol_typeck__.Typeck_outputs.references_acc -> (Cobol_data.Types.data_definition, Cobol_ptree.qualname Cobol_common__Srcloc.TYPES.with_loc) Cobol_procedure.Types.resolved_reference * Cobol_typeck__.Typeck_outputs.references_acc

Emits a warning diagnostic on undefined data-name unless assume_partial_data_definitions is explictly set to true. The reference is registered at the location of the base name of qn, along with references to its qualifiers.

val resolve_record_name : data_definitions:Cobol_unit.Types.data_definitions -> ?assume_partial_data_definitions:bool -> Cobol_ptree.name Cobol_common.Srcloc.with_loc -> Cobol_typeck__.Typeck_outputs.references_acc -> (Cobol_data.Types.record, Cobol_ptree.name Cobol_common.Srcloc.with_loc) Cobol_procedure.Types.resolved_reference * Cobol_typeck__.Typeck_outputs.references_acc
val register_data_qualname : data_definitions:Cobol_unit.Types.data_definitions -> Cobol_ptree.qualname Cobol_common__Srcloc.TYPES.with_loc -> Cobol_typeck__.Typeck_outputs.references_acc -> Cobol_typeck__.Typeck_outputs.references_acc
val register_name : data_definitions:Cobol_unit.Types.data_definitions -> Cobol_ptree.name Cobol_common.Srcloc.with_loc -> Cobol_typeck__.Typeck_outputs.references_acc -> Cobol_typeck__.Typeck_outputs.references_acc