improvements for idetools; system.compiles improved

This commit is contained in:
Araq 2012-07-29 02:45:50 +02:00
commit 087b8621d3
7 changed files with 101 additions and 32 deletions

View file

@ -198,11 +198,14 @@ proc myProcess(context: PPassContext, n: PNode): PNode =
if msgs.gErrorMax <= 1:
result = SemStmtAndGenerateGenerics(c, n)
else:
let oldContextLen = msgs.getInfoContextLen()
try:
result = SemStmtAndGenerateGenerics(c, n)
except ERecoverableError:
RecoverContext(c)
result = ast.emptyNode
msgs.setInfoContextLen(oldContextLen)
if gCmd == cmdIdeTools: findSuggest(c, n)
proc checkThreads(c: PContext) =
if not needsGlobalAnalysis(): return