diff options
author | Araq <rumpf_a@web.de> | 2015-11-01 23:26:19 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-11-01 23:26:31 +0100 |
commit | d673fb39113d8181ed762c05f08e53bc051754e2 (patch) | |
tree | efddf3ccab03be942652acae184d1b52eb220e53 /compiler/sem.nim | |
parent | d883781071100c0fa08b5b92804be9d74e327d63 (diff) | |
download | Nim-d673fb39113d8181ed762c05f08e53bc051754e2.tar.gz |
nimsuggest: added 'chk', 'outline' and 'highlight' features
Diffstat (limited to 'compiler/sem.nim')
-rw-r--r-- | compiler/sem.nim | 6 |
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) = |