Skip to content

Commit 128b621

Browse files
authored
Get source from *vm.Program (#491)
1 parent e2b510d commit 128b621

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vm/program.go

+5
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,8 @@ func (program *Program) DisassembleWriter(w io.Writer) {
343343
}
344344
}
345345
}
346+
347+
// Source returns origin file.Source.
348+
func (program *Program) Source() *file.Source {
349+
return program.source
350+
}

0 commit comments

Comments
 (0)