mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-05-03 23:02:27 +00:00
compiler: provide filename to Compile()
This commit is contained in:
parent
d8db85ef55
commit
057e1c6e3c
9 changed files with 19 additions and 18 deletions
|
@ -44,7 +44,7 @@ func MethodStruct() struct{} { return struct{}{} }
|
|||
func unexportedMethod() int { return 1 }
|
||||
`
|
||||
|
||||
info, err := getBuildInfo(src)
|
||||
info, err := getBuildInfo("foo.go", src)
|
||||
require.NoError(t, err)
|
||||
|
||||
pkg := info.program.Package(info.initialPackage)
|
||||
|
@ -238,7 +238,7 @@ func TestSequencePoints(t *testing.T) {
|
|||
return false
|
||||
}`
|
||||
|
||||
info, err := getBuildInfo(src)
|
||||
info, err := getBuildInfo("foo.go", src)
|
||||
require.NoError(t, err)
|
||||
|
||||
pkg := info.program.Package(info.initialPackage)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue