fixes documentation generator

This commit is contained in:
Araq 2014-09-14 11:34:06 +02:00
commit d330a72a45
4 changed files with 11 additions and 6 deletions

View file

@ -1135,14 +1135,14 @@ proc rawExecute(c: PCtx, start: int, tos: PStackFrame): TFullReg =
of opcParseExprToAst:
decodeB(rkNode)
# c.debug[pc].line.int - countLines(regs[rb].strVal) ?
let ast = parseString(regs[rb].node.strVal, c.debug[pc].toFilename,
let ast = parseString(regs[rb].node.strVal, c.debug[pc].toFullPath,
c.debug[pc].line.int)
if sonsLen(ast) != 1:
globalError(c.debug[pc], errExprExpected, "multiple statements")
regs[ra].node = ast.sons[0]
of opcParseStmtToAst:
decodeB(rkNode)
let ast = parseString(regs[rb].node.strVal, c.debug[pc].toFilename,
let ast = parseString(regs[rb].node.strVal, c.debug[pc].toFullPath,
c.debug[pc].line.int)
regs[ra].node = ast
of opcCallSite: