MainPkg returns the last package in the Sorted() slice. This is the main package of the program.
()
| 307 | // MainPkg returns the last package in the Sorted() slice. This is the main |
| 308 | // package of the program. |
| 309 | func (p *Program) MainPkg() *Package { |
| 310 | return p.sorted[len(p.sorted)-1] |
| 311 | } |
| 312 | |
| 313 | // Parse parses all packages and typechecks them. |
| 314 | // |
no outgoing calls