It's now been more than five years since I worked on NetLogo; there's a limit to how much I still remember.
In particular, I don't remember whether it's possible to get back to the ASTs after the entire compiler has run, or whether they have already been discarded and it's too late. I found some prior discussions in this area in the NetLogo room on Gitter: * https://gitter.im/NetLogo/NetLogo?at=5be1a45dda57ff676c9d4305 — "you want `FrontEndResults` and not `CompilerResults`. "FrontEndResults contains ProcedureDefinition objects, these have the ASTs inside them. see AstNode.scala" * https://gitter.im/NetLogo/NetLogo?at=5bba30ccc7bf7c3662cda279 But anyway, although my first thought was to walk the ASTs, on second thought it might be easier and just as effective for your use case to walk the fully compiled model (the `Array[Command]` inside each procedure) and look for the `_call` and `_callreport` nodes there. Any `_call`s will be in the `Array[Command]` directly, but to find the `_callreport`s you'll need recursively walk the `args` tree under each `Command`. Seth -- You received this message because you are subscribed to the Google Groups "netlogo-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/netlogo-devel/46c6d304-5223-44ff-a512-bda439e19977n%40googlegroups.com.
