From 9e6fb3f696b2d28f900506b531a916457b4a263c Mon Sep 17 00:00:00 2001 From: Araq Date: Sat, 5 Nov 2016 01:19:23 +0100 Subject: new dependency tracking for nimsuggest --- compiler/vm.nim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/vm.nim') diff --git a/compiler/vm.nim b/compiler/vm.nim index 8e1c9f661..1bb440c6c 100644 --- a/compiler/vm.nim +++ b/compiler/vm.nim @@ -24,6 +24,8 @@ import from semfold import leValueConv, ordinalValToString from evaltempl import evalTemplate +from modulegraphs import ModuleGraph + when hasFFI: import evalffi @@ -1516,7 +1518,7 @@ proc setupGlobalCtx(module: PSym; cache: IdentCache) = else: refresh(globalCtx, module) -proc myOpen(module: PSym; cache: IdentCache): PPassContext = +proc myOpen(graph: ModuleGraph; module: PSym; cache: IdentCache): PPassContext = #var c = newEvalContext(module, emRepl) #c.features = {allowCast, allowFFI, allowInfiniteLoops} #pushStackFrame(c, newStackFrame()) -- cgit 1.4.1-2-gfad0