Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Commit

Permalink
ctx.ignored: support pubName
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Jul 22, 2022
1 parent c05eed7 commit e59b3ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cl/compile.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,11 @@ func loadFile(p *gox.Package, conf *Config, file *ast.Node) (pi *PkgInfo, err er
ctx.initCTypes()
ctx.initFile()
ctx.initPublicFrom(conf, file)
for _, ign := range ctx.ignored {
if ctx.getPubName(&ign) {
ctx.ignored = append(ctx.ignored, ign)
}
}
compileDeclStmt(ctx, file, true)
if conf.NeedPkgInfo {
pkgInfo := ctx.PkgInfo // make a copy: don't keep a ref to blockCtx
Expand Down

0 comments on commit e59b3ee

Please sign in to comment.