pub struct Scope {
pub containers: Vec<u32>,
pub callable: Vec<u32>,
pub hidden: Vec<u32>,
pub records: Vec<(u16, Binding)>,
pub files: Vec<SharedFile>,
pub areas: Vec<(u16, u16)>,
pub globals: Vec<Global>,
pub global_files: Vec<(u16, u32)>,
pub global_modes: [Option<u32>; 4],
}Expand description
A program’s EXTERNAL and GLOBAL storage, files and procedures; empty for a program with none.
Fields§
§containers: Vec<u32>The PROGRAM-IDs of the programs containing this one, innermost first.
callable: Vec<u32>The contained programs of its compilation a CALL from it reaches, and those it does not
(syntax::ast::Program::callable and hidden).
records: Vec<(u16, Binding)>Each LINKAGE record whose storage the run unit or a containing program holds, by ordinal, in ordinal order.
files: Vec<SharedFile>Each file whose connector is not its own, in file order.
areas: Vec<(u16, u16)>Each file whose record area is not in the slab, and the LINKAGE record bound to it.
globals: Vec<Global>A program that contains others: its GLOBAL records and files as they find them.
global_files: Vec<(u16, u32)>A program that contains others: its GLOBAL EXCEPTION/ERROR procedures for files, by file,
and for the open modes, in Declaratives.modes’ order.
global_modes: [Option<u32>; 4]