How to listen for source code change in the image ?
Hi, where should i look at if i want a class of mine to be notified of any source code change in the image ? Specifically i want to know if anything changed about a method (or its ast method node), anything that could happen like a refactoring operation or a source code change. Steven.
You need to register to the system announcer singleton to receive the MethodModified event, with, for example: SystemAnnouncer uniqueInstance when: MethodModified send: #aMethodUpdated: to: self Regards, Thierry 2017-05-04 13:40 GMT+02:00 Steven Costiou <steven.costiou@kloum.io>:
Hi,
where should i look at if i want a class of mine to be notified of any source code change in the image ?
Specifically i want to know if anything changed about a method (or its ast method node), anything that could happen like a refactoring operation or a source code change.
Steven.
Thanks :) Le 2017-05-04 13:55, Thierry Goubier a écrit :
You need to register to the system announcer singleton to receive the MethodModified event, with, for example:
SystemAnnouncer uniqueInstance when: MethodModified send: #aMethodUpdated: to: self
Regards,
Thierry
2017-05-04 13:40 GMT+02:00 Steven Costiou <steven.costiou@kloum.io>:
Hi,
where should i look at if i want a class of mine to be notified of any source code change in the image ?
Specifically i want to know if anything changed about a method (or its ast method node), anything that could happen like a refactoring operation or a source code change.
Steven.
participants (2)
-
Steven Costiou -
Thierry Goubier