Lookup.TYPESType definitions to help representing and querying (partially) parsed COBOL programs.
type element_at_position = {element_at_position : element_in_context option;enclosing_compilation_unit_name : string option;}Information returned by Lookup.element_at_position.
and element_in_context = | Data_name of Cobol_ptree.qualname| Data_full_name of Cobol_ptree.qualname| Data_item of {full_qn : Cobol_ptree.qualname option;item_loc : Cobol_common.Srcloc.TYPES.srcloc;}| Proc_name of {qn : Cobol_ptree.qualname;enclosing_section : Cobol_unit.Types.section option;}| Preproc_or_compilation_variable_ref of {def : Cobol_preproc.Env.var_definition;use : [ `Substitution | `Evaluation | `Definition ];loc : Cobol_common.Srcloc.TYPES.srcloc;}type name_definition = {as_paragraph : paragraph_definition option;as_item : item_definition option;}and paragraph_definition =
Cobol_ptree.paragraph Cobol_common.Srcloc.TYPES.with_locand item_definition =
Cobol_data.Types.item_definition Cobol_common.Srcloc.TYPES.with_loctype copy_operation = string Cobol_common.Srcloc.TYPES.with_locwith loc of COPY ...
type procedure_at_position = {cu : Cobol_unit.Types.cobol_unit option;proc_name : Cobol_ptree.qualname option;}