Module Lookup.TYPES

Type definitions to help representing and querying (partially) parsed COBOL programs.

type element_at_position = {
  1. element_at_position : element_in_context option;
  2. enclosing_compilation_unit_name : string option;
}

Information returned by Lookup.element_at_position.

and element_in_context =
  1. | Data_name of Cobol_ptree.qualname
  2. | Data_full_name of Cobol_ptree.qualname
  3. | Data_item of {
    1. full_qn : Cobol_ptree.qualname option;
    2. item_loc : Cobol_common.Srcloc.TYPES.srcloc;
    }
  4. | Proc_name of {
    1. qn : Cobol_ptree.qualname;
    2. enclosing_section : Cobol_unit.Types.section option;
    }
  5. | Preproc_or_compilation_variable_ref of {
    1. def : Cobol_preproc.Env.var_definition;
    2. use : [ `Substitution | `Evaluation | `Definition ];
    3. loc : Cobol_common.Srcloc.TYPES.srcloc;
    }
type name_definition = {
  1. as_paragraph : paragraph_definition option;
  2. as_item : item_definition option;
}
type copy_operation = string Cobol_common.Srcloc.TYPES.with_loc

with loc of COPY ...

type approx_typing_info =
  1. | Alphanum
  2. | Any
  3. | Boolean
  4. | Condition
  5. | Group
  6. | Index
  7. | Numeric
  8. | NumericEdited
  9. | ObjectRef
  10. | Pointer
type procedure_at_position = {
  1. cu : Cobol_unit.Types.cobol_unit option;
  2. proc_name : Cobol_ptree.qualname option;
}