dvdciri/daggraph

Add constructor injected dependencies to the graph

Aperta

#53 aperta il 19 ago 2018

 (0 commenti) (0 reazioni) (0 assegnatari)JavaScript (59 fork)batch import
featurehelp wanted

Metriche repository

Star
 (1141 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Daggraph need to be able to recognise constructor injected dependencies and add them to the graph.

There are some open questions here:

  • Where should we put the class which is constructor injecting some dependencies?
  • Where should we put the injected dependencies?

This is the regex for koltin: /(?:class)\s(\w*).*?(?:@Inject).*?(?:constructor)\((.*?)\)\s?\{/gs This is the regex for java: /(?:@Inject).*?\s(\w*?)\((.*?)\)\s?{/gs

Guida contributor