Esempio n. 1
0
func newBuilder(path string) *builder {
	return &builder{
		ErrorList: lex8.NewErrorList(),
		scope:     sym8.NewScope(),
		path:      path,
		imports:   make(map[string]string),
		pkgUsed:   make(map[string]struct{}),
	}
}
Esempio n. 2
0
func newBuilder(path string) *builder {
	s := sym8.NewScope()
	return &builder{
		ErrorList: lex8.NewErrorList(),
		path:      path,
		p:         ir.NewPkg(path),
		scope:     s, // package scope

		continues: newBlockStack(),
		breaks:    newBlockStack(),
	}
}