compiler: don't push overrides for unexported methods
They're internal, no one cares about them externally.
This commit is contained in:
parent
92dfec61c9
commit
027e94fbde
1 changed files with 3 additions and 0 deletions
|
@ -287,6 +287,9 @@ func CompileAndSave(src string, o *Options) ([]byte, error) {
|
|||
cfg := binding.NewConfig()
|
||||
cfg.Package = di.MainPkg
|
||||
for _, m := range di.Methods {
|
||||
if !m.IsExported {
|
||||
continue
|
||||
}
|
||||
for _, p := range m.Parameters {
|
||||
if p.RealType.TypeName != "" {
|
||||
cfg.Overrides[m.Name.Name+"."+p.Name] = p.RealType
|
||||
|
|
Loading…
Reference in a new issue