MCPcopy
hub / github.com/tinygo-org/tinygo / MainPkg

Method MainPkg

loader/loader.go:309–311  ·  view source on GitHub ↗

MainPkg returns the last package in the Sorted() slice. This is the main package of the program.

()

Source from the content-addressed store, hash-verified

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

Callers 4

testCompilePackageFunction · 0.80
CheckMethod · 0.80
BuildFunction · 0.80
compileGoFileForTestingFunction · 0.80

Calls

no outgoing calls

Tested by 2

testCompilePackageFunction · 0.64
compileGoFileForTestingFunction · 0.64