summary refs log tree commit diff stats
path: root/compiler/sem.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-11-01 23:26:19 +0100
committerAraq <rumpf_a@web.de>2015-11-01 23:26:31 +0100
commitd673fb39113d8181ed762c05f08e53bc051754e2 (patch)
treeefddf3ccab03be942652acae184d1b52eb220e53 /compiler/sem.nim
parentd883781071100c0fa08b5b92804be9d74e327d63 (diff)
downloadNim-d673fb39113d8181ed762c05f08e53bc051754e2.tar.gz
nimsuggest: added 'chk', 'outline' and 'highlight' features
Diffstat (limited to 'compiler/sem.nim')
-rw-r--r--compiler/sem.nim6
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/sem.nim b/compiler/sem.nim
index 041524f84..c6db6fbd3 100644
--- a/compiler/sem.nim
+++ b/compiler/sem.nim
@@ -61,8 +61,8 @@ template semIdeForTemplateOrGeneric(c: PContext; n: PNode;
   when defined(nimsuggest):
     assert gCmd == cmdIdeTools
     if requiresCheck:
-      if optIdeDebug in gGlobalOptions:
-        echo "passing to safeSemExpr: ", renderTree(n)
+      #if optIdeDebug in gGlobalOptions:
+      #  echo "passing to safeSemExpr: ", renderTree(n)
       discard safeSemExpr(c, n)
 
 proc typeMismatch(n: PNode, formal, actual: PType) =
@@ -441,6 +441,8 @@ proc semStmtAndGenerateGenerics(c: PContext, n: PNode): PNode =
   result = hloStmt(c, result)
   if gCmd == cmdInteractive and not isEmptyType(result.typ):
     result = buildEchoStmt(c, result)
+  if gCmd == cmdIdeTools:
+    appendToModule(c.module, result)
   result = transformStmt(c.module, result)
 
 proc recoverContext(c: PContext) =