Name Occurrences
data class NameOccurrences(val declarations: MutableList<NamesIndex.Declaration>, val definitions: MutableList<NamesIndex.Definition>, val usages: MutableList<NamesIndex.Usage>)
The occurrences of things related to some name appearing in this module.
Constructors
Link copied to clipboard
Reconstruct a NameOccurrences from a stream, using the already constructed lists of module names and atom names.
constructor(declarations: MutableList<NamesIndex.Declaration>, definitions: MutableList<NamesIndex.Definition>, usages: MutableList<NamesIndex.Usage>)
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).