mirror of
https://github.com/hanzoai/expr.git
synced 2026-09-24 16:58:58 +00:00
Get source from *vm.Program (#491)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user