caas barely works now

This commit is contained in:
Araq 2012-10-24 01:13:44 +02:00
commit de338526ec
4 changed files with 18 additions and 8 deletions

View file

@ -259,12 +259,12 @@ proc myProcess(context: PPassContext, n: PNode): PNode =
let oldInGenericInst = c.InGenericInst
try:
result = SemStmtAndGenerateGenerics(c, n)
except ERecoverableError:
except ERecoverableError, ESuggestDone:
RecoverContext(c)
c.InGenericInst = oldInGenericInst
result = ast.emptyNode
msgs.setInfoContextLen(oldContextLen)
if gCmd == cmdIdeTools: findSuggest(c, n)
result = ast.emptyNode
#if gCmd == cmdIdeTools: findSuggest(c, n)
proc checkThreads(c: PContext) =
if not needsGlobalAnalysis(): return