dvdciri/daggraph

Add constructor injected dependencies to the graph

開放

#53 建立於 2018年8月19日

 (0 則留言) (0 個反應) (0 位負責人)JavaScript (59 個分叉)batch import
featurehelp wanted

倉庫指標

星標
 (1,141 顆星)
PR 合併指標
 (30 天內沒有已合併 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

貢獻者指南