NameOccurrences

The occurrences of things related to some name appearing in this module.

Constructors

Link copied to clipboard
constructor(binaryStream: DataInputStream, moduleNames: List<String>, atomNames: List<String>)

Reconstruct a NameOccurrences from a stream, using the already constructed lists of module names and atom names.

Properties

Link copied to clipboard

A list of the name's Declarations present in this module.

Link copied to clipboard

A list of the name's Definitions present in this module.

Link copied to clipboard

A list of places that the name has Usages within this module.

Functions

Link copied to clipboard
fun write(binaryStream: DataOutputStream, moduleNumbering: Map<String, Int>, nameNumbering: Map<String, Int>)

Write this NameOccurrences onto the given DataOutputStream. Use the maps from module name to index and atom name to index for compression. The same maps will be provided in inverse form (as Lists of Strings) during subsequent decoding (via the NameOccurrences constructor taking a DataInputStream and the two lists).