cl: SetPatch fix
This commit is contained in:
7
_demo/fmtdemo/fmt.go
Normal file
7
_demo/fmtdemo/fmt.go
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
fmt.Println("Hello, world")
|
||||||
|
}
|
||||||
@@ -786,11 +786,11 @@ func NewPackageEx(prog llssa.Program, patches Patches, pkg *ssa.Package, files [
|
|||||||
}
|
}
|
||||||
ctx.initPyModule()
|
ctx.initPyModule()
|
||||||
ctx.initFiles(pkgPath, files)
|
ctx.initFiles(pkgPath, files)
|
||||||
|
ret.SetPatch(ctx.patchType)
|
||||||
|
|
||||||
if hasPatch {
|
if hasPatch {
|
||||||
skips := ctx.skips
|
skips := ctx.skips
|
||||||
typepatch.Merge(pkgTypes, oldTypes, skips, ctx.skipall)
|
typepatch.Merge(pkgTypes, oldTypes, skips, ctx.skipall)
|
||||||
ret.SetPatch(ctx.patchType)
|
|
||||||
ctx.skips = nil
|
ctx.skips = nil
|
||||||
ctx.state = pkgInPatch
|
ctx.state = pkgInPatch
|
||||||
if _, ok := skips["init"]; ok || ctx.skipall {
|
if _, ok := skips["init"]; ok || ctx.skipall {
|
||||||
|
|||||||
Reference in New Issue
Block a user