Currently in handleEvents we go through the entire source program again with a visitor to find a reference to the used event. We should be able to handle this in the link phase instead, since the used event should either be in the imports or in the declarations for a module.
Currently in
handleEvents
we go through the entire source program again with a visitor to find a reference to the used event. We should be able to handle this in the link phase instead, since the used event should either be in theimports
or in thedeclarations
for a module.