improvements for idetools; system.compiles improved
This commit is contained in:
parent
48e95fe9f9
commit
087b8621d3
7 changed files with 101 additions and 32 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue