support suggest after compile in caas mode
This commit is contained in:
parent
5a2720e990
commit
f52ea04d22
9 changed files with 72 additions and 7 deletions
|
|
@ -150,7 +150,12 @@ proc newModule(fileIdx: int32): PSym =
|
|||
initStrTable(result.tab)
|
||||
StrTableAdd(result.tab, result) # a module knows itself
|
||||
|
||||
proc compileModule(fileIdx: int32, flags: TSymFlags): PSym =
|
||||
proc compileModule(fileIdxArg: int32, flagsArg: TSymFlags): PSym =
|
||||
let (fileIdx, flags) = if fileIdxArg == gDirtyOriginalIdx:
|
||||
(gDirtyBufferIdx, flagsArg + {sfDirty})
|
||||
else:
|
||||
(fileIdxArg, flagsArg)
|
||||
|
||||
result = getModule(fileIdx)
|
||||
if result == nil:
|
||||
growCache gMemCacheData, fileIdx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue