Get source from *vm.Program (#491)

This commit is contained in:
100vlx
2023-12-06 11:02:19 +01:00
committed by GitHub
parent d032df7822
commit 005b78f0ab
+5
View File
@@ -343,3 +343,8 @@ func (program *Program) DisassembleWriter(w io.Writer) {
}
}
}
// Source returns origin file.Source.
func (program *Program) Source() *file.Source {
return program.source
}