Add Unit() method to semantic tree
This commit is contained in:
parent
cc5173dd52
commit
c13c4caacb
|
@ -39,6 +39,11 @@ func (this *Tree) Analyze (
|
|||
return this.analyzeDeclarations()
|
||||
}
|
||||
|
||||
// Unit returns the root unit in this tree.
|
||||
func (this *Tree) Unit () uuid.UUID {
|
||||
return this.unit
|
||||
}
|
||||
|
||||
func (this *Tree) assembleRawMaps () error {
|
||||
for _, declaration := range this.ast.Declarations {
|
||||
switch declaration := declaration.(type) {
|
||||
|
|
Loading…
Reference in New Issue