JADEĀ  Environment Development Ideas

Programmatic way to check for method references

As part of a regular check on our code base we check to see if method access has been set appropriately. We use the undocumented feature on RootSchema getMethodRefs() to check where the method is being used, but this does not return any method references where the method has been exported via a package. So we currently have another dodgy hack to check this. It would be good for this feature to be a 'documented' feature and include either by default or by parameter choice all references including exported via package. This would make checking the health of our code base easier and allow us to use a proper documented feature of Jade. Doing a references via the IDE already returns references exported via a package.

  • Peter Banyard
  • Jul 10 2020
  • Needs review
  • Attach files
  • Ty Baen-Price commented
    12 Jul 08:53pm

    More generally, it is very reasonable for people to want to query their schema programatically. We should present a documented API for developers to query their schema.