public interface LoadSourceListener
Instrumenterto specific locations of a guest language program to listen to load source events.
void onLoad(LoadSourceEvent event)
sourceis loaded.The order in which multiple source event listeners are notified matches the order they are
Implementation Note: Source load events are notified when the guest language
implementation uses a new
source by invoking
TruffleRuntime.createCallTarget(RootNode) with a root node that uses a new source in
Node.getSourceSection(). It assumes that all nodes of an AST have the same
source as their root.
event- an event with context information