addDeclaration

fun addDeclaration(nameInModule: NameInModule, alias: NameInModule?, phraseIndex: Int)

Add information about a Declaration.

Parameters

nameInModule

The NameInModule that is being declared.

alias

The optional existing NameInModule that is being aliased.

phraseIndex

The index into this ModuleCompilation's PhrasePathRecord's phrases. Note that this uniquely determines a phrase anywhere within the module, not just a top level phrase.