summary refs log tree commit diff stats
path: root/compiler/docgen2.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2016-11-05 01:19:23 +0100
committerAraq <rumpf_a@web.de>2016-11-06 17:33:33 +0100
commitbec9c4be27ad0f4a5d730ae1ac18f15667d8d9b1 (patch)
tree8dbf3dbb440118c9120993c4100a1fa3bf5c507b /compiler/docgen2.nim
parent5471b1eacad50a313133c93f68b3495948479bb3 (diff)
downloadNim-bec9c4be27ad0f4a5d730ae1ac18f15667d8d9b1.tar.gz
new dependency tracking for nimsuggest
Diffstat (limited to 'compiler/docgen2.nim')
-rw-r--r--compiler/docgen2.nim4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/docgen2.nim b/compiler/docgen2.nim
index 17b6caaba..9504ab52f 100644
--- a/compiler/docgen2.nim
+++ b/compiler/docgen2.nim
@@ -13,6 +13,8 @@
 import
   os, options, ast, astalgo, msgs, ropes, idents, passes, docgen
 
+from modulegraphs import ModuleGraph
+
 type
   TGen = object of TPassContext
     doc: PDoc
@@ -49,7 +51,7 @@ proc processNodeJson(c: PPassContext, n: PNode): PNode =
   var g = PGen(c)
   generateJson(g.doc, n)
 
-proc myOpen(module: PSym; cache: IdentCache): PPassContext =
+proc myOpen(graph: ModuleGraph; module: PSym; cache: IdentCache): PPassContext =
   var g: PGen
   new(g)
   g.module = module