diff options
author | Araq <rumpf_a@web.de> | 2016-11-05 01:19:23 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2016-11-05 01:19:23 +0100 |
commit | 9e6fb3f696b2d28f900506b531a916457b4a263c (patch) | |
tree | bfa56e480c01264102b26703181c1c8a6d8e2233 /compiler/vm.nim | |
parent | 33ebf3e5fb05f45abadeff4747ab0e3031f75dd0 (diff) | |
download | Nim-9e6fb3f696b2d28f900506b531a916457b4a263c.tar.gz |
new dependency tracking for nimsuggest
Diffstat (limited to 'compiler/vm.nim')
-rw-r--r-- | compiler/vm.nim | 4 |
1 files changed, 3 insertions, 1 deletions
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()) |