compilation cache: fixed recently introduced bug (lazy loading of bodies)

This commit is contained in:
Araq 2011-11-06 01:11:38 +01:00
commit 089e287c6e
7 changed files with 63 additions and 19 deletions

View file

@ -518,12 +518,12 @@ proc process(c: PPassContext, n: PNode): PNode =
if c == nil: return
var w = PRodWriter(c)
case n.kind
of nkStmtList:
of nkStmtList:
for i in countup(0, sonsLen(n) - 1): discard process(c, n.sons[i])
of nkTemplateDef, nkMacroDef:
var s = n.sons[namePos].sym
addInterfaceSym(w, s)
of nkProcDef, nkMethodDef, nkIteratorDef, nkConverterDef:
#var s = n.sons[namePos].sym
#addInterfaceSym(w, s)
of nkProcDef, nkMethodDef, nkIteratorDef, nkConverterDef,
nkTemplateDef, nkMacroDef:
var s = n.sons[namePos].sym
if s == nil: InternalError(n.info, "rodwrite.process")
if n.sons[bodyPos] == nil: