dvdciri/daggraph

Add constructor injected dependencies to the graph

オープン

#53 opened on 2018/08/19

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)JavaScript (59 件のフォーク)batch import
featurehelp wanted

Repository metrics

Stars
 (1,141 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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

コントリビューターガイド