diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-07-16 13:47:21 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-07-16 13:47:21 +0200 |
commit | 8698de1742d577efa9dddc854d5cfb3f7b9fd1ff (patch) | |
tree | c5c49b2d0c36115fffbc543ddef5f4cbbf34d9f7 | |
parent | b7c1be03c87ccd35723d85cdea3deab1db96ccf3 (diff) | |
download | Nim-8698de1742d577efa9dddc854d5cfb3f7b9fd1ff.tar.gz |
nimsuggest improvements
-rw-r--r-- | compiler/modules.nim | 2 | ||||
-rw-r--r-- | compiler/sem.nim | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/compiler/modules.nim b/compiler/modules.nim index 9a7f68495..6849be877 100644 --- a/compiler/modules.nim +++ b/compiler/modules.nim @@ -105,7 +105,7 @@ proc checkDepMem(fileIdx: int32): TNeedRecompile = resetModule(fileIdx) return Yes - when true: + when false: if gMemCacheData[fileIdx].needsRecompile != Maybe: return gMemCacheData[fileIdx].needsRecompile else: diff --git a/compiler/sem.nim b/compiler/sem.nim index bd7c97fcb..717e3b7eb 100644 --- a/compiler/sem.nim +++ b/compiler/sem.nim @@ -59,8 +59,7 @@ template semIdeForTemplateOrGeneric(c: PContext; n: PNode; # templates perform some quick check whether the cursor is actually in # the generic or template. when defined(nimsuggest): - assert gCmd == cmdIdeTools - if requiresCheck: + if gCmd == cmdIdeTools and requiresCheck: #if optIdeDebug in gGlobalOptions: # echo "passing to safeSemExpr: ", renderTree(n) discard safeSemExpr(c, n) |