summary refs log tree commit diff stats
path: root/compiler/suggest.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2017-02-09 17:40:24 +0100
committerAndreas Rumpf <rumpf_a@web.de>2017-02-09 17:40:24 +0100
commit733ed91d3377aee2d436b60da6a4d78afa2f9bc5 (patch)
treeab53799ec99bf2bdd21747856ffd95a8c0c56be3 /compiler/suggest.nim
parent5ff6ff28bf9abf12fa9d82f0323954516a855b6a (diff)
downloadNim-733ed91d3377aee2d436b60da6a4d78afa2f9bc5.tar.gz
disable transitive closure computations; only semcheck procs that have the cursor
Diffstat (limited to 'compiler/suggest.nim')
-rw-r--r--compiler/suggest.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/suggest.nim b/compiler/suggest.nim
index 66876b9b5..aea979d56 100644
--- a/compiler/suggest.nim
+++ b/compiler/suggest.nim
@@ -297,10 +297,10 @@ proc suggestFieldAccess(c: PContext, n: PNode, outputs: var int) =
       suggestOperations(c, n, typ, outputs)
 
 type
-  TCheckPointResult = enum
+  TCheckPointResult* = enum
     cpNone, cpFuzzy, cpExact
 
-proc inCheckpoint(current: TLineInfo): TCheckPointResult =
+proc inCheckpoint*(current: TLineInfo): TCheckPointResult =
   if current.fileIndex == gTrackPos.fileIndex:
     if current.line == gTrackPos.line and
         abs(current.col-gTrackPos.col) < 4: